-
Notifications
You must be signed in to change notification settings - Fork 1
/
dprice_decision_tree.dot
236 lines (236 loc) · 10.5 KB
/
dprice_decision_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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
digraph Tree {
node [shape=box, style="filled", color="black"] ;
0 [label="tradedate <= 14.0\nmse = 1.1128\nsamples = 61999\nvalue = 0.2518", fillcolor="#e5813981"] ;
1 [label="yield <= 4.7325\nmse = 1.0406\nsamples = 53786\nvalue = 0.3443", fillcolor="#e5813983"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label="holdtime <= 4.5\nmse = 1.011\nsamples = 47168\nvalue = 0.2795", fillcolor="#e5813981"] ;
1 -> 2 ;
3 [label="yield <= 4.5095\nmse = 0.9412\nsamples = 30121\nvalue = 0.1661", fillcolor="#e581397f"] ;
2 -> 3 ;
4 [label="yield <= 4.027\nmse = 1.0384\nsamples = 24049\nvalue = 0.2278", fillcolor="#e5813981"] ;
3 -> 4 ;
5 [label="stwd <= 0.5\nmse = 0.9358\nsamples = 21311\nvalue = 0.1102", fillcolor="#e581397e"] ;
4 -> 5 ;
6 [label="(...)", fillcolor="#C0C0C0"] ;
5 -> 6 ;
5933 [label="(...)", fillcolor="#C0C0C0"] ;
5 -> 5933 ;
6182 [label="maturity <= 9587.0\nmse = 0.8922\nsamples = 2738\nvalue = 1.1429", fillcolor="#e5813991"] ;
4 -> 6182 ;
6183 [label="(...)", fillcolor="#C0C0C0"] ;
6182 -> 6183 ;
6506 [label="(...)", fillcolor="#C0C0C0"] ;
6182 -> 6506 ;
6727 [label="yield <= 4.6675\nmse = 0.4819\nsamples = 6072\nvalue = -0.0779", fillcolor="#e581397b"] ;
3 -> 6727 ;
6728 [label="yield <= 4.627\nmse = 0.4435\nsamples = 3497\nvalue = -0.2634", fillcolor="#e5813977"] ;
6727 -> 6728 ;
6729 [label="(...)", fillcolor="#C0C0C0"] ;
6728 -> 6729 ;
6922 [label="(...)", fillcolor="#C0C0C0"] ;
6728 -> 6922 ;
7037 [label="maturity <= 5274.5\nmse = 0.4236\nsamples = 2575\nvalue = 0.1742", fillcolor="#e5813980"] ;
6727 -> 7037 ;
7038 [label="(...)", fillcolor="#C0C0C0"] ;
7037 -> 7038 ;
7143 [label="(...)", fillcolor="#C0C0C0"] ;
7037 -> 7143 ;
7214 [label="yield <= 1.2005\nmse = 1.0713\nsamples = 17047\nvalue = 0.4799", fillcolor="#e5813985"] ;
2 -> 7214 ;
7215 [label="yield <= 0.378\nmse = 0.4347\nsamples = 737\nvalue = -0.5472", fillcolor="#e5813972"] ;
7214 -> 7215 ;
7216 [label="tradedate <= 8.0\nmse = 0.4013\nsamples = 186\nvalue = -1.0867", fillcolor="#e5813968"] ;
7215 -> 7216 ;
7217 [label="(...)", fillcolor="#C0C0C0"] ;
7216 -> 7217 ;
7232 [label="(...)", fillcolor="#C0C0C0"] ;
7216 -> 7232 ;
7239 [label="coupon <= 5.875\nmse = 0.3145\nsamples = 551\nvalue = -0.3651", fillcolor="#e5813976"] ;
7215 -> 7239 ;
7240 [label="(...)", fillcolor="#C0C0C0"] ;
7239 -> 7240 ;
7609 [label="(...)", fillcolor="#C0C0C0"] ;
7239 -> 7609 ;
7646 [label="New Jersey <= 0.5\nmse = 1.0503\nsamples = 16310\nvalue = 0.5263", fillcolor="#e5813986"] ;
7214 -> 7646 ;
7647 [label="yield <= 4.0545\nmse = 1.1365\nsamples = 13039\nvalue = 0.6256", fillcolor="#e5813988"] ;
7646 -> 7647 ;
7648 [label="(...)", fillcolor="#C0C0C0"] ;
7647 -> 7648 ;
10849 [label="(...)", fillcolor="#C0C0C0"] ;
7647 -> 10849 ;
11118 [label="yield <= 4.6495\nmse = 0.5108\nsamples = 3271\nvalue = 0.1306", fillcolor="#e581397f"] ;
7646 -> 11118 ;
11119 [label="(...)", fillcolor="#C0C0C0"] ;
11118 -> 11119 ;
11374 [label="(...)", fillcolor="#C0C0C0"] ;
11118 -> 11374 ;
11519 [label="ISSUE SOURCE: APPROPRIATIONS <= 0.5\nmse = 1.0089\nsamples = 6618\nvalue = 0.8058", fillcolor="#e581398b"] ;
1 -> 11519 ;
11520 [label="yield <= 5.9325\nmse = 1.4933\nsamples = 1676\nvalue = 0.2576", fillcolor="#e5813981"] ;
11519 -> 11520 ;
11521 [label="txb <= 0.5\nmse = 1.1592\nsamples = 1434\nvalue = 0.1319", fillcolor="#e581397f"] ;
11520 -> 11521 ;
11522 [label="yield <= 5.0975\nmse = 1.0311\nsamples = 1316\nvalue = 0.2224", fillcolor="#e5813980"] ;
11521 -> 11522 ;
11523 [label="(...)", fillcolor="#C0C0C0"] ;
11522 -> 11523 ;
11774 [label="(...)", fillcolor="#C0C0C0"] ;
11522 -> 11774 ;
11999 [label="coupon <= 6.9195\nmse = 1.4756\nsamples = 118\nvalue = -0.8784", fillcolor="#e581396c"] ;
11521 -> 11999 ;
12000 [label="(...)", fillcolor="#C0C0C0"] ;
11999 -> 12000 ;
12095 [label="(...)", fillcolor="#C0C0C0"] ;
11999 -> 12095 ;
12098 [label="maturity <= 6616.0\nmse = 2.824\nsamples = 242\nvalue = 1.0026", fillcolor="#e581398f"] ;
11520 -> 12098 ;
12099 [label="yield <= 6.445\nmse = 2.5597\nsamples = 186\nvalue = 1.3625", fillcolor="#e5813995"] ;
12098 -> 12099 ;
12100 [label="(...)", fillcolor="#C0C0C0"] ;
12099 -> 12100 ;
12203 [label="(...)", fillcolor="#C0C0C0"] ;
12099 -> 12203 ;
12212 [label="maturity <= 7293.5\nmse = 1.8437\nsamples = 56\nvalue = -0.1925", fillcolor="#e5813979"] ;
12098 -> 12212 ;
12213 [label="(...)", fillcolor="#C0C0C0"] ;
12212 -> 12213 ;
12224 [label="(...)", fillcolor="#C0C0C0"] ;
12212 -> 12224 ;
12279 [label="yield <= 4.842\nmse = 0.7082\nsamples = 4942\nvalue = 0.9917", fillcolor="#e581398f"] ;
11519 -> 12279 ;
12280 [label="maturity <= 5271.5\nmse = 0.5012\nsamples = 3984\nvalue = 0.81", fillcolor="#e581398b"] ;
12279 -> 12280 ;
12281 [label="yield <= 4.756\nmse = 0.4676\nsamples = 535\nvalue = 1.2317", fillcolor="#e5813993"] ;
12280 -> 12281 ;
12282 [label="(...)", fillcolor="#C0C0C0"] ;
12281 -> 12282 ;
12321 [label="(...)", fillcolor="#C0C0C0"] ;
12281 -> 12321 ;
12358 [label="holdtime <= 2.5\nmse = 0.4745\nsamples = 3449\nvalue = 0.7446", fillcolor="#e581398a"] ;
12280 -> 12358 ;
12359 [label="(...)", fillcolor="#C0C0C0"] ;
12358 -> 12359 ;
12480 [label="(...)", fillcolor="#C0C0C0"] ;
12358 -> 12480 ;
12649 [label="holdtime <= 1.5\nmse = 0.8614\nsamples = 958\nvalue = 1.7469", fillcolor="#e581399d"] ;
12279 -> 12649 ;
12650 [label="maturity <= 7831.5\nmse = 0.7603\nsamples = 298\nvalue = 1.4317", fillcolor="#e5813997"] ;
12649 -> 12650 ;
12651 [label="(...)", fillcolor="#C0C0C0"] ;
12650 -> 12651 ;
12666 [label="(...)", fillcolor="#C0C0C0"] ;
12650 -> 12666 ;
12703 [label="maturity <= 10020.5\nmse = 0.8418\nsamples = 660\nvalue = 1.8893", fillcolor="#e581399f"] ;
12649 -> 12703 ;
12704 [label="(...)", fillcolor="#C0C0C0"] ;
12703 -> 12704 ;
12791 [label="(...)", fillcolor="#C0C0C0"] ;
12703 -> 12791 ;
12868 [label="tradedate <= 16.5\nmse = 1.1628\nsamples = 8213\nvalue = -0.3538", fillcolor="#e5813976"] ;
0 -> 12868 [labeldistance=2.5, labelangle=-45, headlabel="False"] ;
12869 [label="holdtime <= 2.5\nmse = 1.2465\nsamples = 2869\nvalue = -0.1155", fillcolor="#e581397a"] ;
12868 -> 12869 ;
12870 [label="coupon <= 7.7485\nmse = 0.9066\nsamples = 2244\nvalue = 0.0476", fillcolor="#e581397d"] ;
12869 -> 12870 ;
12871 [label="maturity <= 12925.5\nmse = 0.8758\nsamples = 2238\nvalue = 0.0569", fillcolor="#e581397d"] ;
12870 -> 12871 ;
12872 [label="yield <= 0.869\nmse = 0.8083\nsamples = 2168\nvalue = 0.0798", fillcolor="#e581397e"] ;
12871 -> 12872 ;
12873 [label="(...)", fillcolor="#C0C0C0"] ;
12872 -> 12873 ;
12906 [label="(...)", fillcolor="#C0C0C0"] ;
12872 -> 12906 ;
13711 [label="yield <= 3.511\nmse = 2.4437\nsamples = 70\nvalue = -0.6547", fillcolor="#e5813970"] ;
12871 -> 13711 ;
13712 [label="(...)", fillcolor="#C0C0C0"] ;
13711 -> 13712 ;
13735 [label="(...)", fillcolor="#C0C0C0"] ;
13711 -> 13735 ;
13746 [label="yield <= 2.687\nmse = 0.4801\nsamples = 6\nvalue = -3.403", fillcolor="#e581393e"] ;
12870 -> 13746 ;
13747 [label="mse = 0.0054\nsamples = 3\nvalue = -4.092", fillcolor="#e5813931"] ;
13746 -> 13747 ;
13748 [label="mse = 0.0054\nsamples = 3\nvalue = -2.714", fillcolor="#e581394a"] ;
13746 -> 13748 ;
13749 [label="yield <= 4.1205\nmse = 2.0279\nsamples = 625\nvalue = -0.7013", fillcolor="#e581396f"] ;
12869 -> 13749 ;
13750 [label="fin <= 0.5\nmse = 2.0474\nsamples = 433\nvalue = -0.4285", fillcolor="#e5813974"] ;
13749 -> 13750 ;
13751 [label="yield <= 3.46\nmse = 1.8425\nsamples = 385\nvalue = -0.2767", fillcolor="#e5813977"] ;
13750 -> 13751 ;
13752 [label="(...)", fillcolor="#C0C0C0"] ;
13751 -> 13752 ;
14003 [label="(...)", fillcolor="#C0C0C0"] ;
13751 -> 14003 ;
14076 [label="maturity <= 6564.0\nmse = 2.0247\nsamples = 48\nvalue = -1.6459", fillcolor="#e581395e"] ;
13750 -> 14076 ;
14077 [label="(...)", fillcolor="#C0C0C0"] ;
14076 -> 14077 ;
14092 [label="(...)", fillcolor="#C0C0C0"] ;
14076 -> 14092 ;
14103 [label="Georgia <= 0.5\nmse = 1.4375\nsamples = 192\nvalue = -1.3166", fillcolor="#e5813964"] ;
13749 -> 14103 ;
14104 [label="maturity <= 9121.0\nmse = 1.1901\nsamples = 186\nvalue = -1.4104", fillcolor="#e5813962"] ;
14103 -> 14104 ;
14105 [label="(...)", fillcolor="#C0C0C0"] ;
14104 -> 14105 ;
14152 [label="(...)", fillcolor="#C0C0C0"] ;
14104 -> 14152 ;
14171 [label="yield <= 6.1115\nmse = 0.3891\nsamples = 6\nvalue = 1.5895", fillcolor="#e581399a"] ;
14103 -> 14171 ;
14172 [label="(...)", fillcolor="#C0C0C0"] ;
14171 -> 14172 ;
14173 [label="(...)", fillcolor="#C0C0C0"] ;
14171 -> 14173 ;
14174 [label="coupon <= 5.335\nmse = 1.071\nsamples = 5344\nvalue = -0.4818", fillcolor="#e5813973"] ;
12868 -> 14174 ;
14175 [label="maturity <= 5019.5\nmse = 1.0549\nsamples = 4806\nvalue = -0.5467", fillcolor="#e5813972"] ;
14174 -> 14175 ;
14176 [label="maturity <= 4608.5\nmse = 1.1855\nsamples = 568\nvalue = -0.1002", fillcolor="#e581397a"] ;
14175 -> 14176 ;
14177 [label="Puerto Rico <= 0.5\nmse = 0.8349\nsamples = 500\nvalue = -0.2713", fillcolor="#e5813977"] ;
14176 -> 14177 ;
14178 [label="(...)", fillcolor="#C0C0C0"] ;
14177 -> 14178 ;
14653 [label="(...)", fillcolor="#C0C0C0"] ;
14177 -> 14653 ;
14654 [label="maturity <= 4623.5\nmse = 1.9658\nsamples = 68\nvalue = 1.1579", fillcolor="#e5813992"] ;
14176 -> 14654 ;
14655 [label="(...)", fillcolor="#C0C0C0"] ;
14654 -> 14655 ;
14658 [label="(...)", fillcolor="#C0C0C0"] ;
14654 -> 14658 ;
14693 [label="holdtime <= 1.5\nmse = 1.0071\nsamples = 4238\nvalue = -0.6066", fillcolor="#e5813971"] ;
14175 -> 14693 ;
14694 [label="maturity <= 5260.5\nmse = 0.9955\nsamples = 3080\nvalue = -0.4877", fillcolor="#e5813973"] ;
14693 -> 14694 ;
14695 [label="(...)", fillcolor="#C0C0C0"] ;
14694 -> 14695 ;
14710 [label="(...)", fillcolor="#C0C0C0"] ;
14694 -> 14710 ;
15345 [label="hartford <= 0.5\nmse = 0.9006\nsamples = 1158\nvalue = -0.9226", fillcolor="#e581396b"] ;
14693 -> 15345 ;
15346 [label="(...)", fillcolor="#C0C0C0"] ;
15345 -> 15346 ;
15613 [label="(...)", fillcolor="#C0C0C0"] ;
15345 -> 15613 ;
15616 [label="ISSUE SOURCE: NUCLEAR REVENUE <= 0.5\nmse = 0.8406\nsamples = 538\nvalue = 0.0985", fillcolor="#e581397e"] ;
14174 -> 15616 ;
15617 [label="yield <= 1.287\nmse = 0.8035\nsamples = 536\nvalue = 0.1107", fillcolor="#e581397e"] ;
15616 -> 15617 ;
15618 [label="rtg <= 8.5\nmse = 0.1817\nsamples = 225\nvalue = -0.1149", fillcolor="#e581397a"] ;
15617 -> 15618 ;
15619 [label="(...)", fillcolor="#C0C0C0"] ;
15618 -> 15619 ;
15694 [label="(...)", fillcolor="#C0C0C0"] ;
15618 -> 15694 ;
15697 [label="holdtime <= 1.5\nmse = 1.1899\nsamples = 311\nvalue = 0.274", fillcolor="#e5813981"] ;
15617 -> 15697 ;
15698 [label="(...)", fillcolor="#C0C0C0"] ;
15697 -> 15698 ;
15827 [label="(...)", fillcolor="#C0C0C0"] ;
15697 -> 15827 ;
15882 [label="mse = -0.0\nsamples = 2\nvalue = -3.181", fillcolor="#e5813942"] ;
15616 -> 15882 ;
}