Skip to content

EXA use class instead of function for preprocessing in plot_kmeans_digits #18657

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

Conversation

glemaitre
Copy link
Member

follow-up of #18327

Use class instead of preprocessing function to scale data in example gallery.
During this adjustment, the examples are transformed into notebook-style for a better rendering.

@glemaitre glemaitre changed the title EXA use class instead of preprocessing function in example gallery EXA use class instead of function for preprocessing in plot_kmeans_digits Oct 20, 2020
)

bench_k_means(
kmeans=KMeans(
Copy link
Member

Choose a reason for hiding this comment

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

I see the advantage of black for library code, but for example code or any type of teaching material I find it harder to read. Having lines span horizontally feels more "human readable"

But this could be just me. I wonder what every one else thinks.

Copy link
Member Author

Choose a reason for hiding this comment

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

I made the example more compact.

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

Minor comment, otherwise LGTM!

@glemaitre glemaitre merged commit e31b21d into scikit-learn:master Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants