Skip to content

DOC Remove warning from plot adaboost twoclass example #29188

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 1 commit into from
Jun 5, 2024

Conversation

aflanders7
Copy link
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)

Copy link

github-actions bot commented Jun 5, 2024

✔️ Linting Passed

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

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

@lesteve
Copy link
Member

lesteve commented Jun 5, 2024

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
33 checks passed
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
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