Skip to content

Conversation

@JihaneBennis
Copy link
Contributor

@JihaneBennis JihaneBennis commented Mar 12, 2022

#pariswimlds

Reference Issues/PRs

Issue in #22406

What does this implement/fix? Explain your changes.

Minor Doc fix : replacing # #### by # %%

Any other comments?

@JihaneBennis JihaneBennis changed the title Doc plot svm anova Doc fix example (#22406) #pariswimlds Mar 12, 2022
@lesteve
Copy link
Member

lesteve commented Mar 12, 2022

Thanks for your PR, I edited the title of your PR so that it contains the exemple filename!

One of the reason is that we have a script that updates #22406 automatically and that this script relies on the filename being in the PR title.

@lesteve lesteve changed the title Doc fix example (#22406) #pariswimlds DOC use notebook-style for plot_svm_anova.py #pariswimlds Mar 12, 2022
Copy link
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

This is quite a minimal example, so I'm happy with the change (usually it's nice to have more explanation at the beginning of each cell, but I'm not sure if this example requires that)

from sklearn.model_selection import cross_val_score
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.svm import SVC
Copy link
Member

Choose a reason for hiding this comment

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

Could you please remove this cell and move the imports at the beginning of each cell below: each import should go to the cell it is first needed.

This would make the example nicer by avoiding the wall-of-import effect in the first cell.

@lesteve lesteve added the Quick Review For PRs that are quick to review label Mar 14, 2022
@lesteve lesteve mentioned this pull request Mar 14, 2022
47 tasks
lesteve and others added 2 commits March 18, 2022 15:06
@lesteve lesteve changed the title DOC use notebook-style for plot_svm_anova.py #pariswimlds DOC use notebook-style for plot_svm_anova.py Mar 18, 2022
@lesteve
Copy link
Member

lesteve commented Mar 18, 2022

Merging, thanks a lot!

@lesteve lesteve merged commit 57e3523 into scikit-learn:main Mar 18, 2022
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants