Question: Modify the following block of code so that you split the data into train and cross validation at a 70%--30% ratio, with cross validation

Modify the following block of code so that you split the data into train and cross validation at a 70%--30% ratio, with cross validation data being 30%. #Split train data for cross validation from sklearn.model_selection import train_test_split x_train,x_cv, y_train, y_cv = train_test_split (x, y, test_size=0.2)
Step by Step Solution
3.45 Rating (158 Votes )
There are 3 Steps involved in it
To split the data into a 70 training set and a 30 crossvalidation set you can use the foll... View full answer
Get step-by-step solutions from verified subject matter experts
