-
Notifications
You must be signed in to change notification settings - Fork 0
/
tree3.dot
40 lines (40 loc) · 1.65 KB
/
tree3.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
digraph Tree {
node [shape=box] ;
0 [label="charges <= 14453.74\nentropy = 0.744\nsamples = 1003\nvalue = [791, 212]"] ;
1 [label="charges <= 13736.672\nentropy = 0.039\nsamples = 720\nvalue = [717, 3]"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label="entropy = 0.0\nsamples = 697\nvalue = [697, 0]"] ;
1 -> 2 ;
3 [label="age <= 21.0\nentropy = 0.559\nsamples = 23\nvalue = [20, 3]"] ;
1 -> 3 ;
4 [label="bmi <= 29.99\nentropy = 0.811\nsamples = 4\nvalue = [1, 3]"] ;
3 -> 4 ;
5 [label="entropy = 0.0\nsamples = 3\nvalue = [0, 3]"] ;
4 -> 5 ;
6 [label="entropy = 0.0\nsamples = 1\nvalue = [1, 0]"] ;
4 -> 6 ;
7 [label="entropy = 0.0\nsamples = 19\nvalue = [19, 0]"] ;
3 -> 7 ;
8 [label="charges <= 30613.418\nentropy = 0.829\nsamples = 283\nvalue = [74, 209]"] ;
0 -> 8 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
9 [label="bmi <= 30.01\nentropy = 0.991\nsamples = 160\nvalue = [71, 89]"] ;
8 -> 9 ;
10 [label="charges <= 24998.494\nentropy = 0.783\nsamples = 116\nvalue = [27, 89]"] ;
9 -> 10 ;
11 [label="entropy = 0.675\nsamples = 90\nvalue = [16, 74]"] ;
10 -> 11 ;
12 [label="entropy = 0.983\nsamples = 26\nvalue = [11, 15]"] ;
10 -> 12 ;
13 [label="entropy = 0.0\nsamples = 44\nvalue = [44, 0]"] ;
9 -> 13 ;
14 [label="age <= 54.5\nentropy = 0.165\nsamples = 123\nvalue = [3, 120]"] ;
8 -> 14 ;
15 [label="entropy = 0.0\nsamples = 98\nvalue = [0, 98]"] ;
14 -> 15 ;
16 [label="charges <= 39607.148\nentropy = 0.529\nsamples = 25\nvalue = [3, 22]"] ;
14 -> 16 ;
17 [label="entropy = 0.811\nsamples = 4\nvalue = [3, 1]"] ;
16 -> 17 ;
18 [label="entropy = 0.0\nsamples = 21\nvalue = [0, 21]"] ;
16 -> 18 ;
}