Skip to content

Commit

Permalink
MAINT Parameters validation for sklearn.datasets.load_breast_cancer (s…
Browse files Browse the repository at this point in the history
…cikit-learn#26165)

Co-authored-by: Jérémie du Boisberranger <[email protected]>
  • Loading branch information
Charlie-XIAO and jeremiedbb committed Apr 14, 2023
1 parent c7949dd commit b58f448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sklearn/datasets/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ def load_iris(*, return_X_y=False, as_frame=False):
)


@validate_params({"return_X_y": ["boolean"], "as_frame": ["boolean"]})
def load_breast_cancer(*, return_X_y=False, as_frame=False):
"""Load and return the breast cancer wisconsin dataset (classification).
Expand Down
1 change: 1 addition & 0 deletions sklearn/tests/test_public_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def _check_function_param_validation(
"sklearn.datasets.fetch_lfw_people",
"sklearn.datasets.fetch_olivetti_faces",
"sklearn.datasets.fetch_rcv1",
"sklearn.datasets.load_breast_cancer",
"sklearn.datasets.load_diabetes",
"sklearn.datasets.load_iris",
"sklearn.datasets.load_svmlight_file",
Expand Down

0 comments on commit b58f448

Please sign in to comment.