Skip to content
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

Doc : adds 4 points to sklearn.datasets._samples_generator.make_sparse_coded_signal #22817

Merged
merged 7 commits into from
Mar 21, 2022

Conversation

victoirelouis
Copy link
Contributor

Fixes part of #21350

What does this implement/fix? Explain your changes.

Adds 4 dots in the sklearn.datasets._samples_generator.make_sparse_coded_signal function.

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently this PR changes both load_sample_image and make_sparse_coded_signal which is probably not intentional.

This might happen when you create a new branch off of a non-main branch.

Always need to create your branch from the the main branch (ideally after having done a git pull upstream main to make sure that it's up to date with upstream).

This will allow you to work independently on several pull requests in parallel.

@@ -1280,7 +1280,7 @@ def make_sparse_coded_signal(
code : ndarray of shape (n_components, n_samples)
The sparse code such that each column of this matrix has exactly
n_nonzero_coefs non-zero items (X).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those new trailing white-spaces make the code style linter fail in the CI report. Removing them will fix the problem:

Suggested change

@chagaz
Copy link
Contributor

chagaz commented Mar 14, 2022

Adding the #pariswimlds hashtag :-)

@jeremiedbb jeremiedbb added No Changelog Needed Quick Review For PRs that are quick to review labels Mar 21, 2022
Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeremiedbb jeremiedbb merged commit 2a4b40a into scikit-learn:main Mar 21, 2022
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants