/2022-nyr-workshop

Code and notes for the tidymodels workshop

Primary LanguageHTMLOtherNOASSERTION

2022-nyr-workshop

License: Attribution-NonCommercial-ShareAlike 4.0 International

This repository contains code and notes for the tidymodels workshop.

To get the packages, use:

install.packages(c("tidymodels", "shinymodels", "xgboost", "glmnet", "embed", "remotes"))

# For the data:
remotes::install_github("topepo/ongoal")

You should also have the RStudio IDE installed.

Slides

  • Introduction - why tidymodels? example data, tidyverse review.

  • Models - what is the model?, data splitting, basic R models, parsnip introduction, some broom.

  • Feature engineering - recipes introduction,

  • Resampling - why resample, cross-validation, fit_resamples(), shinymodels.

  • Model tuning - tuning parameters, grids, grid search, glmnet, boosting, parallel processing, test set evaluation.