## Call:
## rpart(formula=form, data=ds[tr, vars], model=TRUE)
## n= 123722
##
## CP nsplit rel error xerror xstd
## 1 0.16279070 0 1.0000000 1.0000000 0.005498188
## 2 0.02628252 1 0.8372093 0.8437225 0.005154758
## 3 0.01103406 3 0.7846443 0.7888587 0.005019313
## 4 0.01000000 4 0.7736102 0.7880541 0.005017263
##
## Variable importance
## humidity_3pm sunshine temp_3pm rainfall
## 78 4 4 4
## max_temp rain_today wind_gust_speed humidity_9am
## 2 2 2 1
## cloud_3pm
## 1
##
## Node number 1: 123722 observations, complexity param=0.1627907
## predicted class=No expected loss=0.2109649 P(node) =1
## class counts: 97621 26101
## probabilities: 0.789 0.211
## left son=2 (105547 obs) right son=3 (18175 obs)
## Primary splits:
## humidity_3pm < 72.5 to the left, improve=7021.018, (0 missing)
## rainfall < 0.45 to the left, improve=4078.692, (0 missing)
## rain_today splits as LR, improve=4027.134, (0 missing)
## cloud_3pm < 6.5 to the left, improve=2868.950, (0 missing)
## sunshine < 6.05 to the right, improve=2648.879, (0 missing)
## Surrogate splits:
## sunshine < 0.45 to the right, agree=0.861, adj=0.054, (0 split)
## temp_3pm < 9.95 to the right, agree=0.860, adj=0.044, (0 split)
## max_temp < 10.55 to the right, agree=0.857, adj=0.026, (0 split)
## rainfall < 30.5 to the left, agree=0.855, adj=0.014, (0 split)
## temp_9am < -0.55 to the right, agree=0.854, adj=0.007, (0 split)
##
## Node number 2: 105547 observations
## predicted class=No expected loss=0.1410651 P(node) =0.8530981
## class counts: 90658 14889
## probabilities: 0.859 0.141
....
|