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

The Original C5.0 Implementation

The C50 package interfaces the original C code of the C5.0 implementation by Ross Quinlan, the developer of the decision tree induction algorithm.

library(C50)
model <- C5.0(form, ds[tr, vars])

model
## 
## Call:
## C5.0.formula(formula=form, data=ds[tr, vars])
## 
## Classification Tree
## Number of samples: 123722 
## Number of predictors: 20 
## 
## Tree size: 845 
## 
## Non-standard options: attempt to group attributes

C5imp(model)
##                 Overall
## humidity_3pm     100.00
## sunshine          90.80
## wind_gust_speed   89.91
## rain_today        88.29
## pressure_3pm      36.63
## pressure_9am      25.09
## cloud_3pm         19.31
## rainfall          18.42
## temp_9am          14.99
## wind_dir_3pm      12.89
## temp_3pm          10.27
## wind_speed_9am    10.27
## wind_speed_3pm     9.98
## humidity_9am       9.74
## cloud_9am          8.49
## wind_dir_9am       7.55
## wind_gust_dir      7.17
## min_temp           6.07
## evaporation        4.22
## max_temp           2.14

plot(model)

I am not aware of any converter from a C5.0 tree to an rpart tree and so fancyRpartPlot() will not be useful here.


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.