Skip to content

Commit

Permalink
Merge pull request #201 from gialmisi/master
Browse files Browse the repository at this point in the history
Fixed skope rules not working with scikit-learn version 1.2 and up.
  • Loading branch information
csinva authored Feb 29, 2024
2 parents 6efaa90 + 30a9a07 commit a91641e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imodels/util/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def extract_skope(X, y, feature_names,

for max_depth in max_depths:
bagging_clf = BaggingRegressor(
base_estimator=DecisionTreeRegressor(
estimator=DecisionTreeRegressor(
max_depth=max_depth,
max_features=max_features,
min_samples_split=min_samples_split
Expand Down Expand Up @@ -192,4 +192,4 @@ def extract_marginal_curves(clf, X, max_evals=100):
shape_function_vals = clf.predict_proba(dummy_input)[:, 1] - base
feature_vals_list.append(feature_vals)
shape_function_vals_list.append(shape_function_vals.tolist())
return feature_vals_list, shape_function_vals_list
return feature_vals_list, shape_function_vals_list

0 comments on commit a91641e

Please sign in to comment.