-
Notifications
You must be signed in to change notification settings - Fork 0
/
tree.dot
37 lines (37 loc) · 2.23 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
digraph Tree {
node [shape=box, style="filled, rounded", color="black", fontname="helvetica"] ;
edge [fontname="helvetica"] ;
0 [label="petal width (cm) <= 0.8\ngini = 0.66\nsamples = 90\nvalue = [57, 45, 48]\nclass = setosa", fillcolor="#fdf4ee"] ;
1 [label="gini = 0.0\nsamples = 29\nvalue = [57, 0, 0]\nclass = setosa", fillcolor="#e58139"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label="petal width (cm) <= 1.65\ngini = 0.5\nsamples = 61\nvalue = [0, 45, 48]\nclass = virginica", fillcolor="#f7f3fd"] ;
0 -> 2 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
3 [label="petal width (cm) <= 1.45\ngini = 0.15\nsamples = 32\nvalue = [0, 44, 4]\nclass = versicolor", fillcolor="#4be78c"] ;
2 -> 3 ;
4 [label="gini = 0.0\nsamples = 21\nvalue = [0, 32, 0]\nclass = versicolor", fillcolor="#39e581"] ;
3 -> 4 ;
5 [label="petal length (cm) <= 4.95\ngini = 0.38\nsamples = 11\nvalue = [0, 12, 4]\nclass = versicolor", fillcolor="#7beeab"] ;
3 -> 5 ;
6 [label="gini = 0.0\nsamples = 7\nvalue = [0, 10, 0]\nclass = versicolor", fillcolor="#39e581"] ;
5 -> 6 ;
7 [label="sepal width (cm) <= 2.45\ngini = 0.44\nsamples = 4\nvalue = [0, 2, 4]\nclass = virginica", fillcolor="#c09cf2"] ;
5 -> 7 ;
8 [label="gini = 0.0\nsamples = 1\nvalue = [0, 0, 2]\nclass = virginica", fillcolor="#8139e5"] ;
7 -> 8 ;
9 [label="sepal width (cm) <= 2.75\ngini = 0.5\nsamples = 3\nvalue = [0, 2, 2]\nclass = versicolor", fillcolor="#ffffff"] ;
7 -> 9 ;
10 [label="gini = 0.0\nsamples = 1\nvalue = [0, 2, 0]\nclass = versicolor", fillcolor="#39e581"] ;
9 -> 10 ;
11 [label="gini = 0.0\nsamples = 2\nvalue = [0, 0, 2]\nclass = virginica", fillcolor="#8139e5"] ;
9 -> 11 ;
12 [label="petal width (cm) <= 1.75\ngini = 0.04\nsamples = 29\nvalue = [0, 1, 44]\nclass = virginica", fillcolor="#843de6"] ;
2 -> 12 ;
13 [label="petal length (cm) <= 4.75\ngini = 0.44\nsamples = 2\nvalue = [0, 1, 2]\nclass = virginica", fillcolor="#c09cf2"] ;
12 -> 13 ;
14 [label="gini = 0.0\nsamples = 1\nvalue = [0, 0, 2]\nclass = virginica", fillcolor="#8139e5"] ;
13 -> 14 ;
15 [label="gini = 0.0\nsamples = 1\nvalue = [0, 1, 0]\nclass = versicolor", fillcolor="#39e581"] ;
13 -> 15 ;
16 [label="gini = 0.0\nsamples = 27\nvalue = [0, 0, 42]\nclass = virginica", fillcolor="#8139e5"] ;
12 -> 16 ;
}