How to extract the decision rules from scikit-learn decision-tree?
Can I extract the underlying decision-rules (or ‘decision paths’) from a trained tree in a decision tree as a textual list?
Can I extract the underlying decision-rules (or ‘decision paths’) from a trained tree in a decision tree as a textual list?
I apply the
decision tree classifier and the random forest classifier to my data with the following code: