Skip to content

Commit

Permalink
Fix failing tests that use deprecated feature of sklearn (#2961)
Browse files Browse the repository at this point in the history
  • Loading branch information
schlunma authored Dec 9, 2022
1 parent fe3f5e8 commit a56ce6e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def test_fit_and_score_weighted_no_weights(scorer, output):
clf = LinearRegression()
fit_and_score_weighted_args = [clf, X_DATA, Y_DATA, scorer, TRAIN, TEST]
fit_and_score_weighted_kwargs = {
'parameters': {'normalize': False},
'parameters': {'copy_X': True},
'fit_params': None,
}

Expand All @@ -666,7 +666,7 @@ def test_fit_and_score_weighted_weights(scorer, output):
clf = LinearRegression()
fit_and_score_weighted_args = [clf, X_DATA, Y_DATA, scorer, TRAIN, TEST]
fit_and_score_weighted_kwargs = {
'parameters': {'normalize': False},
'parameters': {'copy_X': True},
'fit_params': {'sample_weight': SAMPLE_WEIGHTS},
'sample_weights': SAMPLE_WEIGHTS,
}
Expand Down

0 comments on commit a56ce6e

Please sign in to comment.