Question: In this homework we will train and test several linear regression models on the diabetes dataset Details of the dataset can In this homework we

In this homework we will train and test several linear regression models on the diabetes dataset Details of the dataset can In this homework we will train and test several linear regression models on the diabetes dataset Details of the dataset can be found here httpsscikit learnorgstabledatasetstoydatasethtmldiabetesdataset After completing this assignment download your notebook and upload it to Canvas First run the following code snippet to load the dataset After executing the code the inputs and corresponding outputs will be loaded to the variables X and Y respectively We also print out the shapes of X and Y for a sanity check 1 from sklearndatasets import loaddiabetes X Y loaddiabetes returnXyTrue printXshape Yshape 1 Split data 1 Write code to randomly split the data into a train set 70 total data and test set 30 total data Store your splits into 4 variables Xtrain Xtest Ytrain Ytest that correspond to the train inputs test inputs train labels and test labels respectively Write your code here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!