Question: Question 1 Set up a linear regression model for the miles per gallon on the data at automobile C l ? . Discard the categorical

Question 1
Set up a linear regression model for the miles per gallon on the data at automobile Cl?. Discard the categorical data.
Get feature matrix x, and target variable y.
Split data into training and testing.
Normalize data using MinMaxScaler.
Creat a LinearRegression object for modeling.
Train the model with training data.
Look at R2 score for the goodness of fit for the train and test data.
Present a graphical comparison of true and observed responses for the test data.
Question 1 Set up a linear regression model for

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 Programming Questions!