-
Notifications
You must be signed in to change notification settings - Fork 0
/
tree.dot
125 lines (125 loc) · 5.6 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
digraph Tree {
node [shape=box, style="filled, rounded", color="black", fontname=helvetica] ;
edge [fontname=helvetica] ;
0 [label="ap_lo <= 87.5\ngini = 0.5\nsamples = 100.0%\nvalue = [0.5, 0.5]\nclass = healthy", fillcolor="#399de500"] ;
1 [label="ap_hi <= 128.5\n0.47\n70.6%\n[0.61, 0.39]\nsick", fillcolor="#e581395f"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label="ap_hi <= 117.5\n0.43\n56.7%\n[0.69, 0.31]\nsick", fillcolor="#e581398a"] ;
1 -> 2 ;
3 [label="ap_hi <= 109.5\n0.36\n17.9%\n[0.77, 0.23]\nsick", fillcolor="#e58139b2"] ;
2 -> 3 ;
4 [label="cholesterol <= 2.5\n0.3\n5.6%\n[0.82, 0.18]\nsick", fillcolor="#e58139c5"] ;
3 -> 4 ;
5 [label="0.29\n5.3%\n[0.83, 0.17]\nsick", fillcolor="#e58139ca"] ;
4 -> 5 ;
6 [label="0.49\n0.3%\n[0.55, 0.45]\nsick", fillcolor="#e5813930"] ;
4 -> 6 ;
7 [label="cholesterol <= 2.5\n0.38\n12.4%\n[0.75, 0.25]\nsick", fillcolor="#e58139a8"] ;
3 -> 7 ;
8 [label="0.36\n11.7%\n[0.77, 0.23]\nsick", fillcolor="#e58139b1"] ;
7 -> 8 ;
9 [label="0.46\n0.6%\n[0.35, 0.65]\nhealthy", fillcolor="#399de575"] ;
7 -> 9 ;
10 [label="cholesterol <= 2.5\n0.46\n38.8%\n[0.65, 0.35]\nsick", fillcolor="#e5813974"] ;
2 -> 10 ;
11 [label="gluc <= 1.5\n0.44\n36.0%\n[0.67, 0.33]\nsick", fillcolor="#e5813982"] ;
10 -> 11 ;
12 [label="0.44\n33.1%\n[0.68, 0.32]\nsick", fillcolor="#e5813985"] ;
11 -> 12 ;
13 [label="0.47\n2.9%\n[0.62, 0.38]\nsick", fillcolor="#e5813961"] ;
11 -> 13 ;
14 [label="weight <= 72.5\n0.44\n2.8%\n[0.33, 0.67]\nhealthy", fillcolor="#399de581"] ;
10 -> 14 ;
15 [label="0.49\n1.5%\n[0.41, 0.59]\nhealthy", fillcolor="#399de54b"] ;
14 -> 15 ;
16 [label="0.36\n1.3%\n[0.24, 0.76]\nhealthy", fillcolor="#399de5b0"] ;
14 -> 16 ;
17 [label="alco <= 0.5\n0.44\n13.9%\n[0.32, 0.68]\nhealthy", fillcolor="#399de586"] ;
1 -> 17 ;
18 [label="ap_hi <= 138.5\n0.43\n13.1%\n[0.31, 0.69]\nhealthy", fillcolor="#399de58a"] ;
17 -> 18 ;
19 [label="gluc <= 2.5\n0.49\n7.4%\n[0.41, 0.59]\nhealthy", fillcolor="#399de54a"] ;
18 -> 19 ;
20 [label="0.49\n6.5%\n[0.42, 0.58]\nhealthy", fillcolor="#399de544"] ;
19 -> 20 ;
21 [label="0.45\n0.9%\n[0.35, 0.65]\nhealthy", fillcolor="#399de578"] ;
19 -> 21 ;
22 [label="cholesterol <= 2.5\n0.3\n5.7%\n[0.18, 0.82]\nhealthy", fillcolor="#399de5c7"] ;
18 -> 22 ;
23 [label="0.3\n4.7%\n[0.19, 0.81]\nhealthy", fillcolor="#399de5c5"] ;
22 -> 23 ;
24 [label="0.26\n1.0%\n[0.15, 0.85]\nhealthy", fillcolor="#399de5d1"] ;
22 -> 24 ;
25 [label="gluc <= 2.5\n0.49\n0.8%\n[0.44, 0.56]\nhealthy", fillcolor="#399de53a"] ;
17 -> 25 ;
26 [label="cholesterol <= 2.5\n0.5\n0.7%\n[0.46, 0.54]\nhealthy", fillcolor="#399de527"] ;
25 -> 26 ;
27 [label="0.5\n0.6%\n[0.48, 0.52]\nhealthy", fillcolor="#399de515"] ;
26 -> 27 ;
28 [label="0.44\n0.1%\n[0.33, 0.67]\nhealthy", fillcolor="#399de583"] ;
26 -> 28 ;
29 [label="gender <= 1.5\n0.35\n0.1%\n[0.23, 0.77]\nhealthy", fillcolor="#399de5b4"] ;
25 -> 29 ;
30 [label="0.12\n0.0%\n[0.07, 0.93]\nhealthy", fillcolor="#399de5ed"] ;
29 -> 30 ;
31 [label="0.43\n0.1%\n[0.31, 0.69]\nhealthy", fillcolor="#399de58c"] ;
29 -> 31 ;
32 [label="ap_hi <= 139.5\n0.35\n29.4%\n[0.23, 0.77]\nhealthy", fillcolor="#399de5b4"] ;
0 -> 32 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
33 [label="gender <= 1.5\n0.49\n7.6%\n[0.43, 0.57]\nhealthy", fillcolor="#399de540"] ;
32 -> 33 ;
34 [label="cholesterol <= 2.5\n0.48\n4.8%\n[0.41, 0.59]\nhealthy", fillcolor="#399de550"] ;
33 -> 34 ;
35 [label="active <= 0.5\n0.5\n3.9%\n[0.45, 0.55]\nhealthy", fillcolor="#399de52d"] ;
34 -> 35 ;
36 [label="0.49\n0.8%\n[0.44, 0.56]\nhealthy", fillcolor="#399de53a"] ;
35 -> 36 ;
37 [label="0.5\n3.1%\n[0.46, 0.54]\nhealthy", fillcolor="#399de52a"] ;
35 -> 37 ;
38 [label="gluc <= 2.5\n0.33\n0.9%\n[0.21, 0.79]\nhealthy", fillcolor="#399de5bd"] ;
34 -> 38 ;
39 [label="0.27\n0.5%\n[0.16, 0.84]\nhealthy", fillcolor="#399de5ce"] ;
38 -> 39 ;
40 [label="0.39\n0.3%\n[0.26, 0.74]\nhealthy", fillcolor="#399de5a4"] ;
38 -> 40 ;
41 [label="height <= 149.5\n0.5\n2.8%\n[0.46, 0.54]\nhealthy", fillcolor="#399de522"] ;
33 -> 41 ;
42 [label="0.0\n0.0%\n[1.0, 0.0]\nsick", fillcolor="#e58139ff"] ;
41 -> 42 ;
43 [label="cholesterol <= 1.5\n0.5\n2.8%\n[0.46, 0.54]\nhealthy", fillcolor="#399de524"] ;
41 -> 43 ;
44 [label="0.5\n2.0%\n[0.51, 0.49]\nsick", fillcolor="#e5813909"] ;
43 -> 44 ;
45 [label="0.45\n0.8%\n[0.34, 0.66]\nhealthy", fillcolor="#399de57b"] ;
43 -> 45 ;
46 [label="gluc <= 2.5\n0.26\n21.8%\n[0.16, 0.84]\nhealthy", fillcolor="#399de5d0"] ;
32 -> 46 ;
47 [label="age <= 18003.5\n0.26\n19.7%\n[0.15, 0.85]\nhealthy", fillcolor="#399de5d2"] ;
46 -> 47 ;
48 [label="ap_hi <= 173.0\n0.22\n3.8%\n[0.12, 0.88]\nhealthy", fillcolor="#399de5db"] ;
47 -> 48 ;
49 [label="0.22\n3.6%\n[0.13, 0.87]\nhealthy", fillcolor="#399de5da"] ;
48 -> 49 ;
50 [label="0.09\n0.2%\n[0.05, 0.95]\nhealthy", fillcolor="#399de5f2"] ;
48 -> 50 ;
51 [label="height <= 180.5\n0.26\n15.9%\n[0.16, 0.84]\nhealthy", fillcolor="#399de5d0"] ;
47 -> 51 ;
52 [label="0.26\n15.6%\n[0.15, 0.85]\nhealthy", fillcolor="#399de5d0"] ;
51 -> 52 ;
53 [label="0.38\n0.3%\n[0.25, 0.75]\nhealthy", fillcolor="#399de5a8"] ;
51 -> 53 ;
54 [label="age <= 18266.0\n0.33\n2.1%\n[0.21, 0.79]\nhealthy", fillcolor="#399de5bb"] ;
46 -> 54 ;
55 [label="weight <= 69.5\n0.18\n0.3%\n[0.1, 0.9]\nhealthy", fillcolor="#399de5e3"] ;
54 -> 55 ;
56 [label="0.31\n0.1%\n[0.19, 0.81]\nhealthy", fillcolor="#399de5c1"] ;
55 -> 56 ;
57 [label="0.13\n0.2%\n[0.07, 0.93]\nhealthy", fillcolor="#399de5eb"] ;
55 -> 57 ;
58 [label="ap_lo <= 580.0\n0.35\n1.8%\n[0.23, 0.77]\nhealthy", fillcolor="#399de5b4"] ;
54 -> 58 ;
59 [label="0.36\n1.7%\n[0.24, 0.76]\nhealthy", fillcolor="#399de5b0"] ;
58 -> 59 ;
60 [label="0.05\n0.1%\n[0.02, 0.98]\nhealthy", fillcolor="#399de5f8"] ;
58 -> 60 ;
}