Skip to content

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

Merged
jeremiedbb merged 7 commits intoscikit-learn:mainfrom
victoirelouis:doc_sample_generator
Mar 21, 2022
Merged

Doc : adds 4 points to sklearn.datasets._samples_generator.make_sparse_coded_signal#22817
jeremiedbb merged 7 commits intoscikit-learn:mainfrom
victoirelouis:doc_sample_generator

Conversation

@victoirelouis
Copy link
Copy Markdown
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
Copy Markdown
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.

The sparse code such that each column of this matrix has exactly
n_nonzero_coefs non-zero items (X).

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
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