forked from mGalarnyk/Python_Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdecisionTreeTitantic.dot
More file actions
17 lines (17 loc) · 1017 Bytes
/
decisionTreeTitantic.dot
File metadata and controls
17 lines (17 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
digraph Tree {
node [shape=box, style="filled", color="black"] ;
rankdir=LR ;
0 [label="Sex <= 0.5\ngini = 0.473\nsamples = 100.0%\nvalue = [0.616, 0.384]\nclass = Dead", fillcolor="#e5813960"] ;
1 [label="Age <= 32.25\ngini = 0.383\nsamples = 35.2%\nvalue = [0.258, 0.742]\nclass = Alive", fillcolor="#399de5a6"] ;
0 -> 1 [labeldistance=2.5, labelangle=-45, headlabel="True"] ;
2 [label="gini = 0.414\nsamples = 24.9%\nvalue = [0.293, 0.707]\nclass = Alive", fillcolor="#399de595"] ;
1 -> 2 ;
3 [label="gini = 0.287\nsamples = 10.3%\nvalue = [0.174, 0.826]\nclass = Alive", fillcolor="#399de5c9"] ;
1 -> 3 ;
4 [label="Age <= 6.5\ngini = 0.306\nsamples = 64.8%\nvalue = [0.811, 0.189]\nclass = Dead", fillcolor="#e58139c4"] ;
0 -> 4 [labeldistance=2.5, labelangle=45, headlabel="False"] ;
5 [label="gini = 0.444\nsamples = 2.7%\nvalue = [0.333, 0.667]\nclass = Alive", fillcolor="#399de57f"] ;
4 -> 5 ;
6 [label="gini = 0.28\nsamples = 62.1%\nvalue = [0.832, 0.168]\nclass = Dead", fillcolor="#e58139cb"] ;
4 -> 6 ;
}