topepo / C5.0

An R package for fitting Quinlan's C5.0 classification model
https://topepo.github.io/C5.0/
50 stars 20 forks source link

Setting a parameter for max-tree depth #27

Closed sumaiyah closed 3 years ago

sumaiyah commented 4 years ago

Hi

Thanks for this great package!

I'm using it to extract rules from DNNs, however the work I am basing my project off of used C4.5 and stipulated that

'only binary splits are allowed and the trees have a maximum depth of ten nodes'

I was wondering if there was a way to set the maximum depth of the decision tree built?

Thanks, Sumaiyah :)

topepo commented 3 years ago

There isn't a limit to the depth (that I'm aware of). C5.0 doesn't have an option for tree depth; that is mostly determined by the minCases and CF arguments in the control function.