Skip to content

Commit 20a881e

Browse files
committed
Change : name of unit test and its documentation
1 parent f862c05 commit 20a881e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mapie/regression/regression.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,6 @@ def fit(
515515
"""
516516
fit_params = kwargs.pop('fit_params', {})
517517
predict_params = kwargs.pop('predict_params', {})
518-
519518
if len(predict_params) > 0:
520519
self._predict_params = True
521520
else:

mapie/tests/test_regression.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,8 +965,9 @@ def test_predict_params_expected_behavior_unaffected_by_fit_params() -> None:
965965
np.testing.assert_allclose(y_pred, 0)
966966

967967

968-
def test_invalid_predict_parameters() -> None:
969-
"""Test that invalid predict_parameters raise errors."""
968+
def test_using_one_predict_parameter_into_predict_but_not_in_fit() -> None:
969+
"""Test that using predict parameters in the predict method
970+
without using one predict_parameter in the fit method raises an error"""
970971
custom_gbr = CustomGradientBoostingRegressor(random_state=random_state)
971972
X_train, X_test, y_train, y_test = (
972973
train_test_split(X, y, test_size=0.2, random_state=random_state)

0 commit comments

Comments
 (0)