Question: Set up workflows for three models: k-nearest neighbors with the kknn engine, tuning neighbors; linear regression; elastic net linear regression, tuning penalty and mixture. Use

Set up workflows for three models: k-nearest neighbors with the kknn engine, tuning neighbors; linear regression; elastic net linear regression, tuning penalty and mixture. Use grid_regular to set up grids of values for all of the parameters we're tuning. Use values of neighbors from 1 to 10 , the default values of penalty, and values of mixture from 0 to 1 . Set up 10 levels of each. How many models total, across all folds, will we be fitting to the abalone data? To answer, think about how many folds there are, how many combinations of model parameters there are, and how many models you'll fit to each fold. Question 4 Fit all the models you created in Question 3 to your folded data. Suggest using tune_grid(); see the documentation and examples included for help by running ?tune_grid. You can also see the code in Lab 4 for help with the tuning process

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!