Modeling with tidymodels in R
David Svancer
Data Scientist
Specifying models with parsnip
Training and evaluating linear regression models
Logistic regression with logistic_reg()
Evaluating classification performance with confusion matrices and ROC curves


Model performance profiles with cross validation and fit_resamples()

| cost_complexity | tree_depth | min_n |
|---|---|---|
| 0.001 | 20 | 35 |
| 0.001 | 20 | 15 |
| 0.001 | 35 | 35 |
| 0.001 | 35 | 15 |
| 0.2 | 20 | 35 |
| ... | ... | ... |
Modeling with tidymodels in R