Skip to content

Commit 95f838f

Browse files
authored
DOC update feature_names and target_names types in load_breast_cancer (scikit-learn#27279)
1 parent 1abc9ad commit 95f838f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/datasets/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,9 +756,9 @@ def load_breast_cancer(*, return_X_y=False, as_frame=False):
756756
target : {ndarray, Series} of shape (569,)
757757
The classification target. If `as_frame=True`, `target` will be
758758
a pandas Series.
759-
feature_names : list
759+
feature_names : ndarray of shape (30,)
760760
The names of the dataset columns.
761-
target_names : list
761+
target_names : ndarray of shape (2,)
762762
The names of target classes.
763763
frame : DataFrame of shape (569, 31)
764764
Only present when `as_frame=True`. DataFrame with `data` and

0 commit comments

Comments
 (0)