20.17 Summary of the Model
## Call:
## rpart(formula=form, data=ds[tr, vars], model=TRUE)
## n= 192787
##
## CP nsplit rel error xerror xstd
## 1 0.15425119 0 1.0000000 1.0000000 0.004367803
## 2 0.03588761 1 0.8457488 0.8428856 0.004094783
## 3 0.03358245 2 0.8098612 0.8161943 0.004043425
## 4 0.01000000 3 0.7762788 0.7768368 0.003964783
##
## Variable importance
## humidity_3pm temp_3pm sunshine wind_gust_speed max_temp
## 80 4 4 3 3
## humidity_9am rainfall wind_speed_3pm cloud_3pm wind_speed_9am
## 1 1 1 1 1
##
## Node number 1: 192787 observations, complexity param=0.1542512
## predicted class=No expected loss=0.2137696 P(node) =1
## class counts: 151575 41212
## probabilities: 0.786 0.214
## left son=2 (160906 obs) right son=3 (31881 obs)
## Primary splits:
## humidity_3pm < 71.5 to the left, improve=11378.440, (0 missing)
## rainfall < 0.75 to the left, improve= 6433.099, (0 missing)
## rain_today splits as LR, improve= 6389.914, (0 missing)
## cloud_3pm < 6.5 to the left, improve= 4582.327, (0 missing)
## humidity_9am < 78.5 to the left, improve= 3591.829, (0 missing)
## Surrogate splits:
## temp_3pm < 10.55 to the right, agree=0.842, adj=0.047, (0 split)
## sunshine < 0.85 to the right, agree=0.842, adj=0.044, (0 split)
## max_temp < 11.05 to the right, agree=0.839, adj=0.028, (0 split)
## rainfall < 26.75 to the left, agree=0.838, adj=0.018, (0 split)
## temp_9am < -0.75 to the right, agree=0.835, adj=0.005, (0 split)
##
## Node number 2: 160906 observations
## predicted class=No expected loss=0.1373038 P(node) =0.834631
## class counts: 138813 22093
## probabilities: 0.863 0.137
##
## Node number 3: 31881 observations, complexity param=0.03588761
....
In the following pages we dissect the various components of this summary.
If you find this curated material useful then you can consider a donation to support it's ongoing availability and give you access to the PDF version of this book. The material has been scoped up by Generative AI without permission or any kind of recompense so do consider a donation if you can afford it. Unlike Generative AI your access to this materials is freely given. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Togaware has a 30 year tradition of making popular open source software which includes sold privacy preserving productivity apps, rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0