-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtree_representation.dot
More file actions
24 lines (24 loc) · 916 Bytes
/
tree_representation.dot
File metadata and controls
24 lines (24 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
digraph Tree {
node [shape=box] ;
0 [label="B <= 0.5\nentropy = 1.0\nsamples = 8\nvalue = [4, 4]"] ;
1 [label="A <= 0.5\nentropy = 0.811\nsamples = 4\nvalue = [3, 1]"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label="entropy = 0.0\nsamples = 2\nvalue = [2, 0]"] ;
1 -> 2 ;
3 [label="C <= 0.5\nentropy = 1.0\nsamples = 2\nvalue = [1, 1]"] ;
1 -> 3 ;
4 [label="entropy = 0.0\nsamples = 1\nvalue = [1, 0]"] ;
3 -> 4 ;
5 [label="entropy = 0.0\nsamples = 1\nvalue = [0, 1]"] ;
3 -> 5 ;
6 [label="C <= 0.5\nentropy = 0.811\nsamples = 4\nvalue = [1, 3]"] ;
0 -> 6 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
7 [label="entropy = 0.0\nsamples = 2\nvalue = [0, 2]"] ;
6 -> 7 ;
8 [label="A <= 0.5\nentropy = 1.0\nsamples = 2\nvalue = [1, 1]"] ;
6 -> 8 ;
9 [label="entropy = 0.0\nsamples = 1\nvalue = [0, 1]"] ;
8 -> 9 ;
10 [label="entropy = 0.0\nsamples = 1\nvalue = [1, 0]"] ;
8 -> 10 ;
}