Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to visualize rules for *Rule*-methods where there is no method ".vizualize()" #119

Open
avraam-inside opened this issue Jun 14, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@avraam-inside
Copy link

Hi!

There are methods such as:
SkopeRulesClassifier
BoostedRulesClassifier
BayesianRuleSetClassifier
OptimalRuleListClassifier
BayesianRuleListClassifier
GreedyRuleListClassifier
FIGS Classifier
FIGSRegressor
etc

Which sort of return a list of rules, but which don't have a convenient method."vizualize()" as for RuleFitClassifier, RuleFitRegressor.

How can I get a list of rules received as a Data Frame for them?

I was trying to get a clear output set through running this example:

https://csinva.io/imodels/rule_set/skope_rules.html

and on your own dataset:

  1. Dataset: data.csv
  2. Code: scope_rules_1_myself.txt (please, change *.txt ext to *.ipynb)

Unfortunately, the result is a bit unreadable:
image

@csinva
Copy link
Owner

csinva commented Jun 14, 2022

Hello 👋, thanks for your interest in this package!

Thanks for this comment, will work on getting a clear and consistent visualization for the models some time this week!

@csinva
Copy link
Owner

csinva commented Jun 15, 2022

I've started adding support for different models simply in the __str__ function. So if you have a model m (e.g. m=FIGSClassifier), you can call str(m) or print(m) to visualize it.

@csinva csinva added the enhancement New feature or request label Jul 3, 2022
@csinva
Copy link
Owner

csinva commented Jul 29, 2022

The demo notebook now shows examples of how to visualize most of the models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants