Skip to content

Commit 1c04a37

Browse files
MAINT Parameters validation for sklearn.datasets.load_linnerud (#26199)
1 parent 9cddedf commit 1c04a37

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

sklearn/datasets/_base.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,12 @@ def load_diabetes(*, return_X_y=False, as_frame=False, scaled=True):
10671067
)
10681068

10691069

1070+
@validate_params(
1071+
{
1072+
"return_X_y": ["boolean"],
1073+
"as_frame": ["boolean"],
1074+
}
1075+
)
10701076
def load_linnerud(*, return_X_y=False, as_frame=False):
10711077
"""Load and return the physical exercise Linnerud dataset.
10721078

sklearn/tests/test_public_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def _check_function_param_validation(
133133
"sklearn.datasets.load_breast_cancer",
134134
"sklearn.datasets.load_diabetes",
135135
"sklearn.datasets.load_iris",
136+
"sklearn.datasets.load_linnerud",
136137
"sklearn.datasets.load_svmlight_file",
137138
"sklearn.datasets.load_svmlight_files",
138139
"sklearn.datasets.make_biclusters",

0 commit comments

Comments
 (0)