My question is can we choose what Decision Tree algorithm to use in sklearn?
In user guide of sklearn, it mentions optimised version of the CART algorithm is used.
Can we change to other algorithms such as C4.5?
My question is can we choose what Decision Tree algorithm to use in sklearn?
In user guide of sklearn, it mentions optimised version of the CART algorithm is used.
Can we change to other algorithms such as C4.5?
No. See documentation
scikit-learn uses an optimised version of the CART algorithm.
But there is a params criterion that we can choose to use "gini" or "entropy":
clf = tree.DecisionTreeClassifier(criterion="entropy")
criterion : string, optional (default=”gini”) The function to measure the quality of a split. Supported criteria are “gini” for the Gini impurity and “entropy” for the information gain.
see Docs