Repository navigation
DOC Fix description of the load_diabetes() return value - #34106
Merged
jeremiedbb merged 4 commits intoMay 25, 2026
Merged
Conversation
The description of the return value of the load_diabetes() when the `return_X_y` parameter is passed seems was derived from load_csv_data() or load_gzip_compressed_csv_data(). But it is wrong, because load_diabetes() returns one 2D array for data and 1D array for target but not two 2D arrays. The new description is unified with other dataset loader APIs and specifies the values of the array shapes related to the load_diabetes() function.
StefanieSenger
approved these changes
May 24, 2026
StefanieSenger
left a comment
Member
There was a problem hiding this comment.
Yes, and I have found and fixed a few more inconsistencies. I will leave it to the next reviewer to merge this.
Contributor
Author
|
ah yes, great catch, thank you @StefanieSenger |
jeremiedbb
pushed a commit
that referenced
this pull request
Jun 2, 2026
Co-authored-by: Stefanie Senger <[email protected]>
prady0t
pushed a commit
to prady0t/scikit-learn
that referenced
this pull request
Sep 2, 2026
…n#34106) Co-authored-by: Stefanie Senger <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this implement/fix? Explain your changes.
The description of the return value of the
load_diabetes()function when thereturn_X_yparameter is passed seems was derived fromload_csv_data()orload_gzip_compressed_csv_data(). This is wrong, becauseload_diabetes()returns one 2D array fordataand 1D array fortarget, but not two 2D arrays.The new description is unified with other dataset loader APIs and specifies the values of the array shapes related to the
load_diabetes()function.