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

代码中的from sklearn.cross_validation import train_test_split 在scikit-learn中没有 #8

Open
Stoneww opened this issue Dec 26, 2018 · 1 comment

Comments

@Stoneww
Copy link

Stoneww commented Dec 26, 2018

老铁用的sklearn那个版本啊,我用的最新版的,没有 from sklearn.cross_validation import train_test_split 这个东西啊

@jackycsie
Copy link

You can try this code.
from sklearn.model_selection import train_test_split
X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size = 0.25, random_state = 0)

@Stoneww Stoneww closed this as completed Sep 16, 2022
@Stoneww Stoneww reopened this Sep 16, 2022
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

2 participants