Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to implement c4.5 algorithm in scikit-learn?

I've read in the documentation that sklearn uses CART algorithm for trees.

Are there specific attributes to change so that it becomes similar to a c4.5 implementation?

like image 819
Lee Merlas Avatar asked Oct 28 '25 12:10

Lee Merlas


1 Answers

CART and C4.5 are somehow similar algorithms, but there are fundamental differences which won't let you tweak sklearn's implementation to get a C4.5 without a lot of work.

C4.5 uses rule sets to decide where to split the data, whereas CART merely uses a numerical splitting criterion.

You can take a look at this implementation of C4.5

like image 175
Juan Luis Ruiz-tagle Avatar answered Oct 30 '25 02:10

Juan Luis Ruiz-tagle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!