1.主要实验流程
获取数据集—->创建 ID3 决策树--->绘制决策树--->模型测试
if name == 'main':
dataSet, labels = getDataSet()
featLabels = []
myTree = createTree(dataSet, labels, featLabels)
createPlot(myTree)
modelTest(myTree, featLabels)
代码参考:https://github.com/Jack-Cherish/Machine-Learning/blob/master/Decision%20Tree/Decision%20Tree.py