20.82 Party Regression Tree

The tree drawing facilities of (Hothorn et al. 2021) can again be used to draw the regression tree using partykit::as.party().

class(model)
## [1] "rpart"
plot(as.party(model))

Notice the visualisation of the predictions—this is particularly informative. We have, in an instant, a view of the conditions when there is little or no rain, compared to significant rain.

References

Hothorn, Torsten, Kurt Hornik, Carolin Strobl, and Achim Zeileis. 2021. Party: A Laboratory for Recursive Partytioning. http://party.R-forge.R-project.org.


Your donation will support ongoing development and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.