42 lines
2.4 KiB
Plaintext
42 lines
2.4 KiB
Plaintext
|
digraph Tree {
|
||
|
node [shape=box, style="filled, rounded", color="black", fontname=helvetica] ;
|
||
|
edge [fontname=helvetica] ;
|
||
|
0 [label=<fiber ≤ 6.5<br/>gini = 0.365<br/>samples = 50<br/>value = [12, 38]<br/>class = 1>, fillcolor="#78bced"] ;
|
||
|
1 [label=<spicy ≤ 0.5<br/>gini = 0.5<br/>samples = 20<br/>value = [10, 10]<br/>class = 0>, fillcolor="#ffffff"] ;
|
||
|
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
|
||
|
2 [label=<fat ≤ 11.0<br/>gini = 0.278<br/>samples = 12<br/>value = [10, 2]<br/>class = 0>, fillcolor="#ea9a61"] ;
|
||
|
1 -> 2 ;
|
||
|
3 [label=<gini = 0.0<br/>samples = 8<br/>value = [8, 0]<br/>class = 0>, fillcolor="#e58139"] ;
|
||
|
2 -> 3 ;
|
||
|
4 [label=<fat ≤ 14.5<br/>gini = 0.5<br/>samples = 4<br/>value = [2, 2]<br/>class = 0>, fillcolor="#ffffff"] ;
|
||
|
2 -> 4 ;
|
||
|
5 [label=<fiber ≤ 3.0<br/>gini = 0.444<br/>samples = 3<br/>value = [1, 2]<br/>class = 1>, fillcolor="#9ccef2"] ;
|
||
|
4 -> 5 ;
|
||
|
6 [label=<gini = 0.0<br/>samples = 1<br/>value = [1, 0]<br/>class = 0>, fillcolor="#e58139"] ;
|
||
|
5 -> 6 ;
|
||
|
7 [label=<gini = 0.0<br/>samples = 2<br/>value = [0, 2]<br/>class = 1>, fillcolor="#399de5"] ;
|
||
|
5 -> 7 ;
|
||
|
8 [label=<gini = 0.0<br/>samples = 1<br/>value = [1, 0]<br/>class = 0>, fillcolor="#e58139"] ;
|
||
|
4 -> 8 ;
|
||
|
9 [label=<gini = 0.0<br/>samples = 8<br/>value = [0, 8]<br/>class = 1>, fillcolor="#399de5"] ;
|
||
|
1 -> 9 ;
|
||
|
10 [label=<age ≤ 58.5<br/>gini = 0.124<br/>samples = 30<br/>value = [2, 28]<br/>class = 1>, fillcolor="#47a4e7"] ;
|
||
|
0 -> 10 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
|
||
|
11 [label=<fat ≤ 3.5<br/>gini = 0.067<br/>samples = 29<br/>value = [1, 28]<br/>class = 1>, fillcolor="#40a0e6"] ;
|
||
|
10 -> 11 ;
|
||
|
12 [label=<sex ≤ 0.5<br/>gini = 0.32<br/>samples = 5<br/>value = [1, 4]<br/>class = 1>, fillcolor="#6ab6ec"] ;
|
||
|
11 -> 12 ;
|
||
|
13 [label=<gini = 0.0<br/>samples = 3<br/>value = [0, 3]<br/>class = 1>, fillcolor="#399de5"] ;
|
||
|
12 -> 13 ;
|
||
|
14 [label=<spicy ≤ 0.5<br/>gini = 0.5<br/>samples = 2<br/>value = [1, 1]<br/>class = 0>, fillcolor="#ffffff"] ;
|
||
|
12 -> 14 ;
|
||
|
15 [label=<gini = 0.0<br/>samples = 1<br/>value = [1, 0]<br/>class = 0>, fillcolor="#e58139"] ;
|
||
|
14 -> 15 ;
|
||
|
16 [label=<gini = 0.0<br/>samples = 1<br/>value = [0, 1]<br/>class = 1>, fillcolor="#399de5"] ;
|
||
|
14 -> 16 ;
|
||
|
17 [label=<gini = 0.0<br/>samples = 24<br/>value = [0, 24]<br/>class = 1>, fillcolor="#399de5"] ;
|
||
|
11 -> 17 ;
|
||
|
18 [label=<gini = 0.0<br/>samples = 1<br/>value = [1, 0]<br/>class = 0>, fillcolor="#e58139"] ;
|
||
|
10 -> 18 ;
|
||
|
}
|