Skip to content

Commit f039ecb

Browse files
committed
Updated decision tree to separate setosa
1 parent 20660b8 commit f039ecb

14 files changed

Lines changed: 139 additions & 324 deletions

.DS_Store

0 Bytes
Binary file not shown.

Sklearn/.DS_Store

0 Bytes
Binary file not shown.

Sklearn/DecisionTrees/.DS_Store

0 Bytes
Binary file not shown.

Sklearn/DecisionTrees/.ipynb_checkpoints/DecisionTreeAnatomy-checkpoint.ipynb

Lines changed: 5 additions & 106 deletions
Large diffs are not rendered by default.

Sklearn/DecisionTrees/DecisionTreeAnatomy.ipynb

Lines changed: 122 additions & 218 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
digraph Tree {
2+
node [shape=box] ;
3+
0 [label="petal length (cm) <= 2.45\ngini = 0.665\nsamples = 112\nvalue = [38, 40, 34]\nclass = versicolor"] ;
4+
1 [label="gini = 0.0\nsamples = 38\nvalue = [38, 0, 0]\nclass = setosa"] ;
5+
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
6+
2 [label="petal length (cm) <= 4.95\ngini = 0.497\nsamples = 74\nvalue = [0, 40, 34]\nclass = versicolor"] ;
7+
0 -> 2 [labeldistance=2.5, labelangle=-45, headlabel="False", arrowsize=1.5, penwidth = 2.5] ;
8+
3 [label="gini = 0.136\nsamples = 41\nvalue = [0, 38, 3]\nclass = versicolor"] ;
9+
2 -> 3 [labeldistance=2.5, labelangle=45, headlabel="True", arrowsize=1.5, penwidth = 2.5] ;
10+
4 [label="gini = 0.114\nsamples = 33\nvalue = [0, 2, 31]\nclass = virginica"] ;
11+
2 -> 4 [labeldistance=2.5, labelangle=-75, headlabel="False"];
12+
}
45.4 KB
Loading
17.2 KB
Loading
119 KB
Loading
129 KB
Loading

0 commit comments

Comments
 (0)