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?

Something like:

if A>0.4 then if B<0.2 then if C>0.8 then class="X"

23 Answers
23

Leave a Comment