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
Set up a linear regression model for the miles per gallon on the data at automobile Discard the categorical data.
Get feature matrix and target variable
Split data into training and testing.
Normalize data using MinMaxScaler.
Creat a LinearRegression object for modeling.
Train the model with training data.
Look at 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
