Skip to content

Commit

Permalink
Merge pull request #125 from EwoutH/sklearn-depreciation
Browse files Browse the repository at this point in the history
feature_scoring: fix Regressor criterion depreciation
  • Loading branch information
quaquel authored May 16, 2022
2 parents a99b71b + 6a443d5 commit c1da7cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ema_workbench/analysis/feature_scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def get_rf_feature_scores(
criterion = "gini"
elif mode == RuleInductionType.REGRESSION:
rfc = RandomForestRegressor
criterion = "mse"
criterion = "squared_error"
else:
raise ValueError(f"{mode} not valid for mode")

Expand Down Expand Up @@ -316,7 +316,7 @@ def get_ex_feature_scores(
criterion = "gini"
elif mode == RuleInductionType.REGRESSION:
etc = ExtraTreesRegressor
criterion = "mse"
criterion = "squared_error"
else:
raise ValueError(f"{mode} not valid for mode")

Expand Down

0 comments on commit c1da7cf

Please sign in to comment.