Question: Measure Performance on Test Set In this section, you will transform the test set using your full pipeline and measure the performance of your best
Measure Performance on Test Set
In this section, you will transform the test set using your full pipeline and measure the performance of your best model on the test set. Follow the steps below, using the specified variable names for automatic grading through CodeGrade.
Based on all previous crossvalidation results, pick your best model.
Use the previously created column transformers to transform the test set, both with and without the GG columns.
Using your best model, measure its performance on the test set to estimate the generalization error.
Instructions for Submission
Fit Best Model: If you haven't already, fit your best model to both sets of your transformed training data.
Transform the Test Set: Use your column transformers to transform the test set Xtest both with and without the GG columns. Name these transformed datasets Xtesttransformedwithgrades and Xtesttransformedwithoutgrades.
Evaluate Performance: Measure the performance of your bestfitted models on the transformed test sets using Root Mean Squared Error RMSE and Rsquared R metrics. Save these variables as:
rmsewithgrades
rwithgrades
rmsewithoutgrades
rwithoutgrades
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
