imodels icon indicating copy to clipboard operation
imodels copied to clipboard

How to extract rules from FIGSClassifier ?

Open frankl1 opened this issue 1 year ago • 3 comments

Hi,

I am trying to use the FIGSClassifier for a binary classification. I set the maximum number of rules, I can plot the trees, but how can I get the generated rules. If possible, with their confidence?

Regards

frankl1 avatar Aug 25 '23 08:08 frankl1

a same question in BoostedRulesClassifier. I cant get rules as the tutoril book

image

xhxt2008 avatar Sep 20 '23 14:09 xhxt2008

For FIGS, you can follow the example in figs_demo.ipynb which uses extract_sklearn_tree_from_figs() and SKompiler to extract the rules for individual trees.

mepland avatar Oct 12 '23 15:10 mepland

Thanks, I will have a look. Are there plan to unify how rules are extracted from any imodels model ? I can see there is a Rule class in the code, but it is not used consistently in the package.

frankl1 avatar Aug 07 '24 15:08 frankl1