There is a DecisionTreeClassifier for varios types of trees (ID3,CART,C4.5) but I don't understand what parameters should I pass to emulate conventional ID3 algorithm behaviour?
The documentation says
scikit-learn uses an optimised version of the CART algorithm.
so you probably cannot emulate an ID3 as found in the textbooks.
http://scikit-learn.org/stable/modules/tree.html#tree-algorithms-id3-c4-5-c5-0-and-cart
I'm not sure that it's the only differences between sklearn implementation and ID3 algo, but from what i know you have to change criterion from "gini" to "entropy" for ID3
DecisionTreeClassifier(criterion="entropy")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With