Skip to content

Understanding docstrings #19443

Answered by NicolasHug
CheriseCodes asked this question in Q&A
Discussion options

You must be logged in to vote

X : ndarray, shape (n_samples, n_features)

should have been

X : ndarray of shape (n_samples, n_features)

same for the description of y.

99% of the time, our parameters and return values aren't shapes (100% of the time when it comes to X and y.)

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@alfaro96
Comment options

Answer selected by alfaro96
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants