Assignment 10: Tuning Model Parameters
Contents
10. Assignment 10: Tuning Model Parameters#
10.1. Quick Facts#
Due: 2020-11-18
10.3. Assessment#
Eligible skills: (links to checklists)
10.4. Instructions#
summary Extend the work you did in assignment 7,8, or 9, by optimizing the model parameters.
Choose your dataset, task, and a model. It can be any model we have used in class so far. Include a breif description of the task.
Fit the model with default parameters and check the score. Interpret the score in context.
Choose reasonable model parameter values for your parameter grid by assessing how well the model fit. Examine the model.
Use grid search to find the best performing model parameters.
Examine the best fit model, how different is it from the default? Score the best fit model on a held out test set.
Examine and interpret the cross validation results. How do they vary in terms of time? Is the performance meaningfully different or just a little?
Try varying the cross validation parameters (eg the number of folds and/or type of cross validation). Does this change your conclusions?
Tip
this is best for regression or classification, but if you use clustering
use the scoring
parameter to pass better metrics than the default
of the score method.
Hint
Assignment 11 will be to optimize two models and then compare two models on the same task
Thinking Ahead
What other tradeoffs might you want to make in choosing a model? How could you present these results using your EDA skills?