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

import statement update train_test_split #12

Open
WilliamLage opened this issue Feb 11, 2021 · 0 comments
Open

import statement update train_test_split #12

WilliamLage opened this issue Feb 11, 2021 · 0 comments

Comments

@WilliamLage
Copy link

noted that in the chapter one oner_application code you're using an outdated import statement for sklearn's train_test_split function. please update as follows to comply with sklearn version 0.24.1

existing code
from sklearn.cross_validation import train_test_split

please update to
from sklearn.model_selection import train_test_split

the code runs fine after that amendment, but as this is likely in other notebooks in this publication it will require changes in subsequent files barring users who practice version control.

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