Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1e)For the polynomial degree that produces the lowest mean square error from the above cross validation, conduct fit_transform for X_train and X_test data into X_train1
1e)For the polynomial degree that produces the lowest mean square error from the above cross
validation, conduct fit_transform for X_train and X_test data into X_train1 and X_test1.
Fit X_train1 and y_train by linear regression.
Print mean sqaure error of the linear regression for y_test and predicted X_test1 data.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started