-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtree.dot
More file actions
25 lines (25 loc) · 1.5 KB
/
tree.dot
File metadata and controls
25 lines (25 loc) · 1.5 KB
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
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 = 105\nvalue = [36, 36, 33]\nclass = setosa", fillcolor="#ffffff"] ;
1 [label="gini = 0.0\nsamples = 36\nvalue = [36, 0, 0]\nclass = setosa", fillcolor="#e58139"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label="petal width (cm) <= 1.55\ngini = 0.499\nsamples = 69\nvalue = [0, 36, 33]\nclass = versicolor", fillcolor="#effdf5"] ;
0 -> 2 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
3 [label="petal length (cm) <= 5.25\ngini = 0.054\nsamples = 36\nvalue = [0, 35, 1]\nclass = versicolor", fillcolor="#3fe685"] ;
2 -> 3 ;
4 [label="gini = 0.0\nsamples = 35\nvalue = [0, 35, 0]\nclass = versicolor", fillcolor="#39e581"] ;
3 -> 4 ;
5 [label="gini = 0.0\nsamples = 1\nvalue = [0, 0, 1]\nclass = virginica", fillcolor="#8139e5"] ;
3 -> 5 ;
6 [label="petal length (cm) <= 4.85\ngini = 0.059\nsamples = 33\nvalue = [0, 1, 32]\nclass = virginica", fillcolor="#853fe6"] ;
2 -> 6 ;
7 [label="sepal width (cm) <= 3.1\ngini = 0.375\nsamples = 4\nvalue = [0, 1, 3]\nclass = virginica", fillcolor="#ab7bee"] ;
6 -> 7 ;
8 [label="gini = 0.0\nsamples = 3\nvalue = [0, 0, 3]\nclass = virginica", fillcolor="#8139e5"] ;
7 -> 8 ;
9 [label="gini = 0.0\nsamples = 1\nvalue = [0, 1, 0]\nclass = versicolor", fillcolor="#39e581"] ;
7 -> 9 ;
10 [label="gini = 0.0\nsamples = 29\nvalue = [0, 0, 29]\nclass = virginica", fillcolor="#8139e5"] ;
6 -> 10 ;
}