Skip to content

DOC Remove warning from plot svm margin example - #29187

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

lesteve merged 1 commit into
scikit-learn:mainfrom
aflanders7:svm-margin

Conversation

@aflanders7

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Fixes plot svm margin example #29055

What does this implement/fix? Explain your changes.

I removed the cmap parameter from plt.scatter in order to fix 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: 4f8e368. Link to the linter CI: here

@lesteve lesteve left a comment

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.

Thanks a lot, merging!

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

@lesteve
lesteve merged commit 2e5e52f into scikit-learn:main Jun 5, 2024
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