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

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

Closed gialmisi closed 4 months ago

gialmisi commented 4 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 4 months ago

Thanks for the fix!