Skip to content

Commit 6f2cf7c

Browse files
MAINT Parameters validation for sklearn.isotonic.check_increasing (scikit-learn#26256)
Co-authored-by: jeremie du boisberranger <jeremiedbb@yahoo.fr>
1 parent d5d2364 commit 6f2cf7c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

sklearn/isotonic.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
__all__ = ["check_increasing", "isotonic_regression", "IsotonicRegression"]
2121

2222

23+
@validate_params(
24+
{
25+
"x": ["array-like"],
26+
"y": ["array-like"],
27+
},
28+
prefer_skip_nested_validation=True,
29+
)
2330
def check_increasing(x, y):
2431
"""Determine whether y is monotonically correlated with x.
2532

sklearn/tests/test_public_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ def _check_function_param_validation(
197197
"sklearn.feature_selection.r_regression",
198198
"sklearn.inspection.partial_dependence",
199199
"sklearn.inspection.permutation_importance",
200+
"sklearn.isotonic.check_increasing",
200201
"sklearn.isotonic.isotonic_regression",
201202
"sklearn.linear_model.orthogonal_mp",
202203
"sklearn.linear_model.orthogonal_mp_gram",

0 commit comments

Comments
 (0)