May 2020
Intermediate to advanced
404 pages
10h 52m
English
Since we have a single dataset, we will break it into two parts, with the feature and label parts separated:
X_train, X_valid, y_train, y_valid = train_test_split(data['Text'], df['ProductId'], test_size = 0.2)
We will use the train_test_split() method from the sklearn module to split the dataset into 80% for training and 20% for testing.
Read now
Unlock full access