Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Shortlist Promising Models In this section, you will fit and compare three regression models to your transformed data, both with and without the G 1

Shortlist Promising Models
In this section, you will fit and compare three regression models to your transformed data, both with and without the G1/G2 columns, using cross-validation. Follow the steps below, using the specified variable names.
Initialize Three Regression Models
Linear Regression
Support Vector Machine (SVM) Regression
Lasso Regression
Compare Models with Cross-Validation
Using the above models, perform cross-validation on each model using both sets of transformed data (with and without G1/G2 columns).
Instructions for Submission
Initialize the Models: Instantiate a Linear Regression, SVM Regression, and Lasso Regression model.
Use the specified variable names for the respective models:
lin_reg
svm_reg
lasso_reg
Cross-Validation: Using both sets of transformed data (with and without G1/G2 columns), perform 3-fold cross-validation for each model using RMSE as the metric.
You will run cross-validation six times (e.g., cross-validation of the linear regression model with the G1/G2 data, cross-validation of the linear regression model without the G1/G2 data, etc.)
Use the specified variable names to save each respective array of scores:
cv_scores_lin_reg_with_grades
cv_scores_lin_reg_without_grades
cv_scores_svm_with_grades
cv_scores_svm_without_grades
cv_scores_lasso_with_grades
cv_scores_lasso_without_grades
Use the specified variable names to save the mean of each cross-validation array and print it to view your mean scores:
rmse_lin_reg_with_grades
rmse_lin_reg_without_grades
rmse_svm_with_grades
rmse_svm_without_grades
rmse_lasso_with_grades
rmse_lasso_without_grades

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions