Skip to content
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

[QUESTION] Chapter 2 StratfiedShuffleSplit #626

Open
Martikuz opened this issue Oct 9, 2023 · 0 comments
Open

[QUESTION] Chapter 2 StratfiedShuffleSplit #626

Martikuz opened this issue Oct 9, 2023 · 0 comments

Comments

@Martikuz
Copy link

Martikuz commented Oct 9, 2023

handson-ml second edition (German Version)
page 56 and 57 in the book

Hello, I am trying to understand the stratified shuffle split function. That's why I have 2 points that are confusing me.

Why are my values for cat 1 and 5 different from yours in the strat_test_set? Since I receive the same values like you for the whole dataset, I doubt that the dataset has changed (Output 94).

grafik
Image of my code

Your strat_test_set values in the book on page 56 are also different from the stratified values in image 2-10 on page 57.
In the github example they are the same and thats what I have expected. I guess the github version is the correct one, but again, how can it happen that they were different in the book? something must have influenced the outcome of the stratified shuffle split right?

grafik
Image of your github code

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

No branches or pull requests

1 participant