Question: You are given the following code fragment: (b) Write Python code with Scikit-Learn to complete the following tasks: (i) Get Split X and y into

 You are given the following code fragment: (b) Write Python code
with Scikit-Learn to complete the following tasks: (i) Get Split X and

You are given the following code fragment: (b) Write Python code with Scikit-Learn to complete the following tasks: (i) Get Split X and y into training set and testing set with ratio 7:3; The import statement for the required Python module should be include in your code. [3 marks] (ii) Build and train the multiple linear regression model(rg_model). The import statement for the required Python module should be included in your code. [3 marks] (iii) Name TWO metrics for the evaluation of model performance in linear regression model. [2 marks]

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!