Skip to content

runyi-yao/Decision-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

- 利用ID3决策树预测患糖尿病的可能性

关于患糖尿病可能性的预测

1.主要实验流程

获取数据集—->创建 ID3 决策树--->绘制决策树--->模型测试

if name == 'main':

获取数据集

dataSet, labels = getDataSet()

featLabels = []

创建 ID3 决策树

myTree = createTree(dataSet, labels, featLabels)

绘制决策树

createPlot(myTree)

模型测试

modelTest(myTree, featLabels)

代码参考:https://github.com/Jack-Cherish/Machine-Learning/blob/master/Decision%20Tree/Decision%20Tree.py

About

利用ID3决策树预测患糖尿病的可能性

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages