Skip to content

Commit 20660b8

Browse files
committed
Updated decision tree tutorial, need to evaulate if good idea
1 parent 42d1d5b commit 20660b8

File tree

5 files changed

+343
-355
lines changed

5 files changed

+343
-355
lines changed

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

Lines changed: 169 additions & 175 deletions
Large diffs are not rendered by default.

Sklearn/DecisionTrees/DecisionTreeAnatomy.ipynb

Lines changed: 169 additions & 175 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
digraph Tree {
22
node [shape=box] ;
3-
0 [label="petal length (cm) <= 2.35\ngini = 0.665\nsamples = 112\nvalue = [37, 34, 41]\nclass = virginica"] ;
4-
1 [label="gini = 0.0\nsamples = 37\nvalue = [37, 0, 0]\nclass = setosa"] ;
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"] ;
55
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
6-
2 [label="petal length (cm) <= 4.95\ngini = 0.496\nsamples = 75\nvalue = [0, 34, 41]\nclass = virginica"] ;
6+
2 [label="petal length (cm) <= 4.95\ngini = 0.497\nsamples = 74\nvalue = [0, 40, 34]\nclass = versicolor"] ;
77
0 -> 2 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
8-
3 [label="gini = 0.153\nsamples = 36\nvalue = [0, 33, 3]\nclass = versicolor"] ;
8+
3 [label="gini = 0.136\nsamples = 41\nvalue = [0, 38, 3]\nclass = versicolor"] ;
99
2 -> 3 ;
10-
4 [label="gini = 0.05\nsamples = 39\nvalue = [0, 1, 38]\nclass = virginica"] ;
10+
4 [label="gini = 0.114\nsamples = 33\nvalue = [0, 2, 31]\nclass = virginica"] ;
1111
2 -> 4 ;
1212
}
-194 Bytes
Loading
-28.3 KB
Loading

0 commit comments

Comments
 (0)