I have only done training and testing on a single data set splits. I have a supervised learning problem: Data 1 Training/Testing and Data 2: No labels. I am using pandas data frame.
Data set 1: supervised
text y_variable
apple fruit
orange fruit
celery vegetable
mango fruit
Data set 2: with no label
text to_be_predicted
orange ?
celery ?
mango ?
I am using scikit learn:
X = df['text']
y = df['y_variable']
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.2
This splits the existing dataframe into training and testing. How to I train/test first Data set 1 and apply it to the second data set? Machine Learning.
Data set 2: with no label
text to_be_predicted
orange fruit
celery vegetable
mango fruit
