Go to TogaWare.com Home Page. Data Science Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Rules from Decision Tree

We can use rattle::asRules() to convert the decision tree to a set of rules:

asRules(model)
## 
##  Rule number: 7 [rain_tomorrow=Yes cover=8014 (6%) prob=0.79]
##    humidity_3pm>=72.5
##    humidity_3pm>=83.5
## 
##  Rule number: 13 [rain_tomorrow=Yes cover=3275 (3%) prob=0.65]
##    humidity_3pm>=72.5
##    humidity_3pm< 83.5
##    rainfall>=2.7
## 
##  Rule number: 25 [rain_tomorrow=Yes cover=1768 (1%) prob=0.58]
##    humidity_3pm>=72.5
##    humidity_3pm< 83.5
##    rainfall< 2.7
##    wind_gust_speed>=47
## 
##  Rule number: 24 [rain_tomorrow=No cover=5118 (4%) prob=0.34]
##    humidity_3pm>=72.5
##    humidity_3pm< 83.5
##    rainfall< 2.7
##    wind_gust_speed< 47
## 
##  Rule number: 2 [rain_tomorrow=No cover=105547 (85%) prob=0.14]
##    humidity_3pm< 72.5


Support further development by purchasing the PDF version of the book.
Other online resources include the GNU/Linux Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 2000-2020 Togaware Pty Ltd. . Creative Commons ShareAlike V4.