Skip to content

DOC Remove warning from plot adaboost twoclass example - #29188

Merged
lesteve merged 1 commit into
scikit-learn:mainfrom
aflanders7:plot-adaboost
Jun 5, 2024
Merged

lesteve merged 1 commit into
scikit-learn:mainfrom
aflanders7:plot-adaboost

Conversation

@aflanders7

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Fixes plot adaboost twoclass example #29055

What does this implement/fix? Explain your changes.

I removed the cmap parameter from plt.scatter since the colors were already set. This fixed the user warnings.

Any other comments?

I tested the code with the changes, and it ran as expected with no warnings.
The fix was implemented based on the relative matplotlib documentation: (https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.scatter.html)

@github-actions

github-actions Bot commented Jun 5, 2024

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: f13b1a2. Link to the linter CI: here

@lesteve

lesteve commented Jun 5, 2024

Copy link
Copy Markdown
Member

Thanks a lot, merging!

I checked in this PR doc artifacts that it was indeed removing the warning.

@lesteve
lesteve merged commit 36375c3 into scikit-learn:main Jun 5, 2024
@ArturoAmorQ ArturoAmorQ mentioned this pull request Jun 5, 2024
7 tasks done
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jul 2, 2024
@jeremiedbb jeremiedbb mentioned this pull request Jul 2, 2024
11 tasks done
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jul 2, 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.

2 participants