8000 Fix attribute mismatches in documentation strings. by alexitkes · Pull Request #14320 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 13 commits into from
Jul 14, 2019

Conversation

alexitkes
Copy link
Contributor
@alexitkes alexitkes commented Jul 13, 2019

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.

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.
@alexitkes alexitkes changed the title Fix attribute mismatches in documentation strings. WIP: Fix attribute mismatches in documentation strings. Jul 13, 2019
Describe `whitening_` attribute.
10000
Just fix a typo.
Document PCA.n_features_ and PCA.n_samples_
Remove trailing whitespace
Break a line too long for Flake8
@alexitkes alexitkes changed the title WIP: Fix attribute mismatches in documentation strings. Fix attribute mismatches in documentation strings. Jul 13, 2019
Copy link
Member
@amueller amueller left a 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

alexitkes and others added 3 commits July 13, 2019 19:17
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.
@amueller
Copy link
Member

FYI for suggestions you can also just make the changes by clicking on accepting the suggestion, not sure that's what you did.

Copy link
Member
@amueller amueller left a 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.

@TomDLT TomDLT merged commit 7fa117b into scikit-learn:master Jul 14, 2019
@TomDLT
Copy link
Member
TomDLT commented Jul 14, 2019

Thanks !

@alexitkes alexitkes deleted the alexitkes-docpatch-1 branch July 14, 2019 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure all attributes are documented
3 participants
0