csinva / imodels

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

The issue in ruleFit.get_rules(exclude_zero_coef=True). #82

Closed JSONG006 closed 2 years ago

JSONG006 commented 2 years ago

Hi, the .ix is deprecated, so when I try to call ruleFit.get_rules(exclude_zero_coef=True), it will have an error.

if exclude_zero_coef: rules = rules.ix[rules.coef != 0]