csinva / imodels

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

Fixed skope rules not working with scikit-learn version 1.2 and up. #201

Closed gialmisi closed 8 months ago

gialmisi commented 8 months ago

The argument to BaggingClassifier base_estimator was renamed to estimator in scikit-learn version 1.2. See https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.BaggingClassifier.html

Before this change, training skope-rules does not work due to passing the wrong keyword argument.

csinva commented 8 months ago

Thanks for the fix!