Question: Problem 2. Polynomial regression using the Position_Salaries data set (a) [20 points] Train polynomial regression models with degrees 2, 3, and 4. At this time,
Problem 2. Polynomial regression using the Position_Salaries data set (a) [20 points] Train polynomial regression models with degrees 2, 3, and 4. At this time, you don't need to divide the data into trainvtest sets. Thus, you can use the entire data for both training and evaluation purposes. (b) (20 points) Plot the data set and the three regression models. How do these three models fit the data? (c) [20 points] Let us assume that we should divide the avallable data into train and test sets, as shown below. Which polynomiat degree is the most suitable one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
