8000 DOC added example for `sklearn.datasets.make_multilabel_classification` by rprkh · Pull Request #28354 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC added example for sklearn.datasets.make_multilabel_classification #28354

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 3 commits into from
Feb 11, 2024

Conversation

rprkh
Copy link
Contributor
@rprkh rprkh commented Feb 2, 2024

Reference Issues/PRs

Towards #27982

What does this implement/fix? Explain your changes.

Adds an example to the docstring of make_multilabel_classification

Any other comments?

Copy link
github-actions bot commented Feb 2, 2024

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 31d993f. Link to the linter CI: here

@glemaitre glemaitre self-requested a review February 5, 2024 17:49
Examples
--------
>>> from sklearn.datasets import make_multilabel_classification
>>> X, y = make_multilabel_classification(random_state=42)
Copy link
Member

Choose a reason for hiding this comment

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

Hi @rprkh thanks as always for your PR! I guess we can set a custom n_label=3 to better understand in a glimpse how it affects the elements in y.

@rprkh
Copy link
Contributor Author
rprkh commented Feb 9, 2024

Hey, I added the suggestions @ArturoAmorQ

Copy link
Member
@ArturoAmorQ ArturoAmorQ left a comment

Choose a reason for hiding this comment

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

LGTM but I'll let @glemaitre give his advice on this one. Thanks again @rprkh :)

Copy link
Member
@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @rprkh

@glemaitre glemaitre merged commit 9323e07 into scikit-learn:main Feb 11, 2024
@rprkh rprkh deleted the doc_multilabel_classification branch February 12, 2024 07:28
LeoGrin pushed a commit to LeoGrin/scikit-learn that referenced this pull request Feb 12, 2024
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0