Created
July 14, 2020 08:33
-
-
Save risenW/cd7dcde3f7a321003692729b2f2a589f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.model_selection import train_test_split | |
Xtrain, Xtest = train_test_split(ratings_df, test_size=0.2, random_state=1) | |
print(f"Shape of train data: {Xtrain.shape}") | |
print(f"Shape of test data: {Xtest.shape}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment