Created
January 27, 2021 07:03
-
-
Save letthedataconfess/f85459e5df5fe8a16f2f59884c051d2f to your computer and use it in GitHub Desktop.
sentiment analysis
This file contains 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
x = df.iloc[:,1].values # Features variable | |
y = df.iloc[:,0].values # Target variable | |
from sklearn.model_selection import train_test_split | |
x_train,x_test,y_train,y_test = train_test_split(x,y,random_state=0,test_size=0.2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment