How to extract the underlying decision-rules (or 'decision paths') from a trained tree in a decision tree as a textual list?
if A>0.4 then if B0.8 then class='X' In order to extract the decision rules, we can use the following code. from sklearn.tree import _tree def…
1 Answer · 1.5K Views · Answered ✓