Skip to content

Commit

Permalink
Adjust two tests for scikit-learn 1.6
Browse files Browse the repository at this point in the history
Scoring "max_error" was renamed to "neg_max_error".

Fixes #160.
  • Loading branch information
musicinmybrain committed Jan 23, 2025
1 parent 0e9f030 commit c0b678c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sklearn_genetic/tests/test_feature_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def test_negative_criteria():
evolved_estimator = GAFeatureSelectionCV(
clf,
cv=3,
scoring="max_error",
scoring="neg_max_error",
population_size=5,
generations=generations,
tournament_size=3,
Expand Down
2 changes: 1 addition & 1 deletion sklearn_genetic/tests/test_genetic_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def test_negative_criteria():
evolved_estimator = GASearchCV(
clf,
cv=3,
scoring="max_error",
scoring="neg_max_error",
population_size=5,
generations=generations,
tournament_size=3,
Expand Down

0 comments on commit c0b678c

Please sign in to comment.