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

 

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

1 Expert Approved Answer
Step: 1 Unlock

To split the data into a 70 training set and a 30 crossvalidation set you can use the foll... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!