Training model with train_test_split

sklearn

#1

I want to use sklearns train_test_split library to predict my model.
How to do so in this case?


#2

Hi,

train_test_split is basically used to create a training and testing set from the complete train data in order to build models and check the model accuracy. In the following article, under section “The validation set approach”, you’ll find a simple explanation and code (python and r) for the same.