-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel2.dot
29 lines (29 loc) · 1.76 KB
/
model2.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
digraph Tree {
node [shape=box, style="filled, rounded", color="black", fontname="helvetica"] ;
edge [fontname="helvetica"] ;
0 [label="SupportCalls <= 4.5\ngini = 0.49\nsamples = 278777\nvalue = [191009, 249823]\nclass = Churn", fillcolor="#d0e8f9"] ;
1 [label="Gender <= 0.5\ngini = 0.46\nsamples = 188227\nvalue = [189726, 107791]\nclass = Loyal", fillcolor="#f4c9a9"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label="UsageFrequency <= 9.5\ngini = 0.41\nsamples = 112889\nvalue = [126386, 52313]\nclass = Loyal", fillcolor="#f0b58b"] ;
1 -> 2 ;
3 [label="gini = 0.45\nsamples = 29960\nvalue = [31553, 15970]\nclass = Loyal", fillcolor="#f2c19d"] ;
2 -> 3 ;
4 [label="gini = 0.4\nsamples = 82929\nvalue = [94833, 36343]\nclass = Loyal", fillcolor="#efb185"] ;
2 -> 4 ;
5 [label="PaymentDelay <= 20.5\ngini = 0.5\nsamples = 75338\nvalue = [63340, 55478]\nclass = Loyal", fillcolor="#fcefe6"] ;
1 -> 5 ;
6 [label="gini = 0.46\nsamples = 63297\nvalue = [63340, 36515]\nclass = Loyal", fillcolor="#f4caab"] ;
5 -> 6 ;
7 [label="gini = 0.0\nsamples = 12041\nvalue = [0, 18963]\nclass = Churn", fillcolor="#399de5"] ;
5 -> 7 ;
8 [label="SupportCalls <= 5.5\ngini = 0.02\nsamples = 90550\nvalue = [1283, 142032]\nclass = Churn", fillcolor="#3b9ee5"] ;
0 -> 8 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
9 [label="LastInteraction <= 15.5\ngini = 0.1\nsamples = 15745\nvalue = [1283, 23729]\nclass = Churn", fillcolor="#44a2e6"] ;
8 -> 9 ;
10 [label="gini = 0.13\nsamples = 7956\nvalue = [862, 11785]\nclass = Churn", fillcolor="#47a4e7"] ;
9 -> 10 ;
11 [label="gini = 0.07\nsamples = 7789\nvalue = [421, 11944]\nclass = Churn", fillcolor="#40a0e6"] ;
9 -> 11 ;
12 [label="gini = 0.0\nsamples = 74805\nvalue = [0, 118303]\nclass = Churn", fillcolor="#399de5"] ;
8 -> 12 ;
}