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

still error occured #33

Closed
rahulit-netizen opened this issue Dec 24, 2023 · 1 comment
Closed

still error occured #33

rahulit-netizen opened this issue Dec 24, 2023 · 1 comment

Comments

@rahulit-netizen
Copy link

Let's split the data into X_train, X_test, y_train and y_test

We will use X_train and y_train to train the model and X_test and y_test to test the model

from scikit-learn_selecting import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.15, random_state=2)

@adrinjalali
Copy link
Member

That is not valid python code. You should do pip install scikit-learn instead of pip install sklearn, and if you use a library that depends on sklearn instead of scikit-learn, you should tell them to fix it.

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