csinva / imodels

Interpretable ML package 🔍 for concise, transparent, and accurate predictive modeling (sklearn-compatible).
https://csinva.io/imodels
MIT License
1.34k stars 119 forks source link

'RuleFitRegressor' object has no attribute 'get_rules' #162

Closed vinay-k12 closed 1 year ago

vinay-k12 commented 1 year ago

Tried getting the rules after fitting the model 'preds = rulefit.predict(X_test)'.

rules = rulefit.get_rules()

But it says - 'RuleFitRegressor' object has no attribute 'get_rules'!

Any ideas about the issue?

vinay-k12 commented 1 year ago

Found the issue. It is supposed to be rulefit._get_rules()