Comments (4)
Hi, thanks for bringing this to our attention. Can you provide more details on the code used to produce this result?
from imodels.
Thanks for your reply, should I provide my data also?
features = X.columns
X = X.values
rulefit = RuleFitClassifier(random_state=2022, tree_size=3, exp_rand_tree_size=False)
rulefit.fit(X, y, feature_names=features)
preds = rulefit.predict(X)
accuracy = round(metrics.accuracy_score(y, preds), 2)
rules = rulefit.get_rules()
rules = rules[rules.coef != 0].sort_values("coef", ascending=False)
from imodels.
No need to provide the data — this is caused by a bug in the process of checking for duplicate rules (https://github.com/csinva/imodels/blob/master/imodels/util/extract.py#L97-L107). We will have it fixed shortly!
from imodels.
Was fixed in #87
from imodels.
Related Issues (20)
- Inconsistent types for RuleFit._extract_rules() HOT 1
- HSTree LOOCV Speed-up
- BoostedRulesClassifier, BoostedRulesRegressor not working with sklearn cross_validate HOT 3
- FIGSRegressor failed to calculate importance_data_tree
- 'FIGS' object has no attribute 'decision_function' HOT 1
- DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future HOT 1
- Problem importing functions from module `imodels.importance` HOT 2
- Bugs about fit SLIMClassifier, BayesianRuleSetClassifier, SlipperClassifier, TaoTreeRegressor
- How to extract rules from FIGSClassifier ? HOT 3
- How to implement the importance of variable and rule in the RuleFitClassifier algorithm?
- HSTreeClassifierCV ignore the feature name HOT 1
- How to extract rules from BoostedRulesClassifier?
- Trouble with FIGS
- No support for class_weight = "balanced" in FIGSClassifier
- Updation in colab notebook
- No function to extract rules from HSTreeClassifierCV HOT 1
- HSTree 'works' without error with unsupported sklearn models, but doesn't do anything
- RuleFit parameter `sample_fract` seems to do nothing
- How to calculate shapley values for HSTreeClassifier
- FIGS with Multiclass Classification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imodels.