-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Chapter 2: Stratify #635
Comments
Hi @Jeffresh , |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why use StrafiedShuffleSplit, instead of train_test_split with attribute
stratify
?X_train, X_test = train_test_split(housing.values, test_size=0.2, stratify=housing['income_cat'], random_state=42)
I think its more clear and pythonic that make folds and use a
for
statement for 1 iterationThe text was updated successfully, but these errors were encountered: