-
-
Notifications
You must be signed in to change notification settings - Fork 26k
Fix attribute mismatches in documentation strings. #14320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Describe the n_components_ attribute in addition to n_components parameter. The will differ it no n_components value given to the constructor.
There is an attribute named n_components_, not n_component_
The n_components_ attribute was referred to as n_component_
Document the FastICA.mean_ attribute.
Describe `whitening_` attribute.
Just fix a typo.
Document PCA.n_features_ and PCA.n_samples_
Remove trailing whitespace
Break a line too long for Flake8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good apart from minor nitpicks
Improve documentation string. Co-Authored-By: Andreas Mueller <t3kcit@gmail.com>
Update documentation string Co-Authored-By: Andreas Mueller <t3kcit@gmail.com>
Improved documentation for PCA attributes.
FYI for suggestions you can also just make the changes by clicking on accepting the suggestion, not sure that's what you did. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes! looks good.
Thanks ! |
Partially fixes #14312
Fixes the following items:
FastICA, [whitening_]
The matrix projecting data onto the first principal components.
FastICA, [mean_]
The mean over features
NMF, [n_components_]
This attribute is same to the
n_components
parameter if it was set. Otherwise,it is same with
n_features
GaussianRandomProjection, [n_components_]
Just a typo fixed:
n_component_
->n_components_
SparseRandomProjection, [n_components_]
Just a typo fixed:
n_component_
->n_components_
PCA, [n_features_]
The number of features in the data matrix the PCA transformer was fitted on.
PCA, [n_samples_]
The number of samples in the data matrix the PCA transformer was fitted on.