Skip to content

DOC improve iris example - #26973

Merged
glemaitre merged 28 commits into
scikit-learn:mainfrom
eguenther:doc_improve_iris_example
Sep 7, 2023
Merged

glemaitre merged 28 commits into
scikit-learn:mainfrom
eguenther:doc_improve_iris_example

Conversation

@eguenther

Copy link
Copy Markdown
Contributor

Adds a link to the plot_iris_dataset example (#26927 ) to make it more discoverable.
Thanks @adrinjalali @glemaitre

@github-actions

github-actions Bot commented Aug 1, 2023 •

Copy link
Copy Markdown

❌ Linting issues

There was an issue running the linter job. Please update with upstream/main (link) and push the changes. If you already have done that, please send an empty commit with git commit --allow-empty and push the changes to trigger the CI.

Generated for commit: 474e8cc. Link to the linter CI: here

@adrinjalali adrinjalali 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.

Comment thread examples/datasets/plot_iris_dataset.py Resolved
@glemaitre
glemaitre self-requested a review August 11, 2023 21:19
Comment thread sklearn/datasets/_base.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
@eguenther

Copy link
Copy Markdown
Contributor Author

Thanks @glemaitre for your comments!

Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Resolved
Comment thread examples/datasets/plot_iris_dataset.py Outdated
# %%
# Scatter Plot of the Iris dataset
# --------------------------------
import matplotlib.pyplot as plt # noqa: E402

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.

Suggested change
import matplotlib.pyplot as plt # noqa: E402
import matplotlib.pyplot as plt

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I had to leave this in, otherwise the linter would not let me commit

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.

This is weird, because our global conf already discard E402.
I committed and pushed with the fix and it seems that pre-commit did not annoy me. Not sure why you got in trouble.

Comment thread examples/datasets/plot_iris_dataset.py Resolved
@eguenther

Copy link
Copy Markdown
Contributor Author

Thanks for the helpful comments @glemaitre !

@glemaitre
glemaitre self-requested a review September 7, 2023 14:02
@glemaitre

Copy link
Copy Markdown
Member

Good for merging. Thanks @eguenther

@glemaitre
glemaitre merged commit a31e108 into scikit-learn:main Sep 7, 2023
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Sep 18, 2023
Co-authored-by: Elisabeth Günther <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
jeremiedbb pushed a commit that referenced this pull request Sep 20, 2023
Co-authored-by: Elisabeth Günther <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
Co-authored-by: Elisabeth Günther <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
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