Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sotagg
Copy link
Contributor

@sotagg sotagg commented Sep 13, 2025

What does this implement/fix? Explain your changes.

Minor refactoring

  • Remove unnecessary reshape
  • Replace manual array splitting with train_test_split

Copy link

github-actions bot commented Sep 13, 2025

✔️ Linting Passed

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

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

Copy link
Member

@ArturoAmorQ ArturoAmorQ left a comment

Choose a reason for hiding this comment

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

Hi @sotagg thanks for the PR and pointing this out! Can you please take this opportunity to set a np.random.default_rng for reproducible results across the example? We can also set shuffle=False in the train_test_split function.

@sotagg
Copy link
Contributor Author

sotagg commented Sep 15, 2025

@ArturoAmorQ
Thanks! I've commited the changes you suggested.

Copy link
Member

@ArturoAmorQ ArturoAmorQ left a comment

Choose a reason for hiding this comment

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

Thanks again @sotagg! Merging!

@ArturoAmorQ ArturoAmorQ merged commit a9c852d into scikit-learn:main Sep 16, 2025
36 checks passed
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