Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JonathonYan1993/ML_DecisionTree_prepruning_postpruning
/ functions
Functions
16 in github.com/JonathonYan1993/ML_DecisionTree_prepruning_postpruning
⨍
Functions
16
◇
Types & classes
0
↓ 2 callers
Function
entropyCal
(dfdata)
Decision_Tree_ID3.py:23
↓ 2 callers
Function
getNumLeafs
(myTree)
Decision_Tree_Visual.py:19
↓ 2 callers
Function
plotMidText
(cntrPt,parentPt,txtString)
Decision_Tree_Visual.py:78
↓ 2 callers
Function
plotNode
figure points:表示坐标原点在图的左下角的数据点 figure pixels:表示坐标原点在图的左下角的像素点 figure fraction:此时取值是小数,范围是([0,1],[0,1]),在图的左下角时xy是(0,0),最右上角是(
Decision_Tree_Visual.py:59
↓ 2 callers
Function
splitDataset
(dfdata,colName,colValue)
Decision_Tree_ID3.py:34
↓ 2 callers
Function
valPrecision
(thisTree,valdata)
Decision_Tree_ID3_postpruning.py:27
↓ 1 callers
Function
chooseBestFeatureToSplit
(dfdata)
Decision_Tree_ID3.py:45
↓ 1 callers
Function
creatDecisionTree
(dfdata)
Decision_Tree_ID3.py:69
↓ 1 callers
Function
createPostpruningTree
(inputTree,dfdata,valdata)
Decision_Tree_ID3_postpruning.py:42
↓ 1 callers
Function
createPrepruningTree
(dfdata,valdata)
Decision_Tree_ID3_prepruning.py:55
↓ 1 callers
Function
getTreeDepth
(myTree)
Decision_Tree_Visual.py:39
↓ 1 callers
Function
plotTree
(myTree,parentPt,nodeTxt)
Decision_Tree_Visual.py:84
↓ 1 callers
Function
precisionRaiseJudge
(chosenFeature,dfdata,valdata)
Decision_Tree_ID3_prepruning.py:24
↓ 1 callers
Function
typeMajority
(dfdata)
Decision_Tree_ID3.py:64
Function
classify
(inputTree,valSple)
Decision_Tree_ID3.py:82
Function
createTree
(newTree,titleName)
Decision_Tree_Visual.py:121