-
Notifications
You must be signed in to change notification settings - Fork 0
/
tree.dot
41 lines (41 loc) · 2.32 KB
/
tree.dot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
digraph Tree {
node [shape=box, style="filled", color="black", fontname="helvetica"] ;
edge [fontname="helvetica"] ;
0 [label="petal width (cm) <= 0.8\ngini = 0.666\nsamples = 100\nvalue = [31, 35, 34]\nclass = 1", fillcolor="#fcfffd"] ;
1 [label="gini = 0.0\nsamples = 31\nvalue = [31, 0, 0]\nclass = 0", fillcolor="#e58139"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label="petal width (cm) <= 1.75\ngini = 0.5\nsamples = 69\nvalue = [0, 35, 34]\nclass = 1", fillcolor="#f9fefb"] ;
0 -> 2 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
3 [label="petal length (cm) <= 5.35\ngini = 0.188\nsamples = 38\nvalue = [0, 34, 4]\nclass = 1", fillcolor="#50e890"] ;
2 -> 3 ;
4 [label="sepal length (cm) <= 4.95\ngini = 0.105\nsamples = 36\nvalue = [0, 34, 2]\nclass = 1", fillcolor="#45e788"] ;
3 -> 4 ;
5 [label="petal width (cm) <= 1.35\ngini = 0.5\nsamples = 2\nvalue = [0, 1, 1]\nclass = 1", fillcolor="#ffffff"] ;
4 -> 5 ;
6 [label="gini = 0.0\nsamples = 1\nvalue = [0, 1, 0]\nclass = 1", fillcolor="#39e581"] ;
5 -> 6 ;
7 [label="gini = 0.0\nsamples = 1\nvalue = [0, 0, 1]\nclass = 2", fillcolor="#8139e5"] ;
5 -> 7 ;
8 [label="sepal width (cm) <= 2.25\ngini = 0.057\nsamples = 34\nvalue = [0, 33, 1]\nclass = 1", fillcolor="#3fe685"] ;
4 -> 8 ;
9 [label="petal width (cm) <= 1.25\ngini = 0.444\nsamples = 3\nvalue = [0, 2, 1]\nclass = 1", fillcolor="#9cf2c0"] ;
8 -> 9 ;
10 [label="gini = 0.0\nsamples = 2\nvalue = [0, 2, 0]\nclass = 1", fillcolor="#39e581"] ;
9 -> 10 ;
11 [label="gini = 0.0\nsamples = 1\nvalue = [0, 0, 1]\nclass = 2", fillcolor="#8139e5"] ;
9 -> 11 ;
12 [label="gini = 0.0\nsamples = 31\nvalue = [0, 31, 0]\nclass = 1", fillcolor="#39e581"] ;
8 -> 12 ;
13 [label="gini = 0.0\nsamples = 2\nvalue = [0, 0, 2]\nclass = 2", fillcolor="#8139e5"] ;
3 -> 13 ;
14 [label="petal length (cm) <= 4.85\ngini = 0.062\nsamples = 31\nvalue = [0, 1, 30]\nclass = 2", fillcolor="#8540e6"] ;
2 -> 14 ;
15 [label="sepal width (cm) <= 3.1\ngini = 0.444\nsamples = 3\nvalue = [0, 1, 2]\nclass = 2", fillcolor="#c09cf2"] ;
14 -> 15 ;
16 [label="gini = 0.0\nsamples = 2\nvalue = [0, 0, 2]\nclass = 2", fillcolor="#8139e5"] ;
15 -> 16 ;
17 [label="gini = 0.0\nsamples = 1\nvalue = [0, 1, 0]\nclass = 1", fillcolor="#39e581"] ;
15 -> 17 ;
18 [label="gini = 0.0\nsamples = 28\nvalue = [0, 0, 28]\nclass = 2", fillcolor="#8139e5"] ;
14 -> 18 ;
}