Tidymodels: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
* [https://uribo.github.io/awesome-tidymodels/ AWESOME tidymodels] | * [https://uribo.github.io/awesome-tidymodels/ AWESOME tidymodels] | ||
* [https://emilhvitfeldt.github.io/ISLR-tidymodels-labs/index.html *Translations of the ISLR labs into using the tidymodels set of packages] | * [https://emilhvitfeldt.github.io/ISLR-tidymodels-labs/index.html *Translations of the ISLR labs into using the tidymodels set of packages] | ||
* [https://github.com/topepo/caret/issues/959 Caret for Survival Analysis?] | * Survival | ||
* [https://github.com/tidymodels/planning/tree/master/survival-analysis Survival Methods in tidymodels], [https://www.tidyverse.org/blog/2021/11/survival-analysis-parsnip-adjacent/ 2021/11/2] | ** [https://github.com/topepo/caret/issues/959 Caret for Survival Analysis?] | ||
* [https://tidymodels.github.io/censored/index.html censored] package. censored is a “parsnip-adjacent” packages with model definitions for censored regression and survival analysis models. | ** [https://github.com/tidymodels/planning/tree/master/survival-analysis Survival Methods in tidymodels], [https://www.tidyverse.org/blog/2021/11/survival-analysis-parsnip-adjacent/ 2021/11/2] | ||
** [https://tidymodels.github.io/censored/index.html censored] package. censored is a “parsnip-adjacent” packages with model definitions for censored regression and survival analysis models. | |||
** [https://www.tidyverse.org/blog/2024/04/tidymodels-survival-analysis/ Survival analysis for time-to-event data with tidymodels] 2024/4/3. | |||
* [https://rviews.rstudio.com/2019/06/19/a-gentle-intro-to-tidymodels/ A Gentle Introduction to tidymodels] | * [https://rviews.rstudio.com/2019/06/19/a-gentle-intro-to-tidymodels/ A Gentle Introduction to tidymodels] | ||
* Julia Silge [https://juliasilge.com/blog/himalayan-climbing/ Handle class imbalance in climbing expedition data with tidymodels] | * Julia Silge [https://juliasilge.com/blog/himalayan-climbing/ Handle class imbalance in climbing expedition data with tidymodels] | ||
Line 43: | Line 46: | ||
* [https://www.tidyverse.org/blog/2021/12/tidymodels-2021-q4/ Closing out our year with a Q4 2021 tidymodels update] | * [https://www.tidyverse.org/blog/2021/12/tidymodels-2021-q4/ Closing out our year with a Q4 2021 tidymodels update] | ||
* [https://lsinks.github.io/posts/2023-04-10-tidymodels/tidymodels_tutorial.html A Tidymodels Tutorial] 2023/4/10 | * [https://lsinks.github.io/posts/2023-04-10-tidymodels/tidymodels_tutorial.html A Tidymodels Tutorial] 2023/4/10 | ||
* [https://boiled-data.github.io/ClassificationDiabetes.html Tidymodels Machine Learning: Diabetes Classification] | |||
== stacks == | == stacks == | ||
Line 49: | Line 53: | ||
== modelDown == | == modelDown == | ||
https://modeloriented.github.io/modelDown/ | https://modeloriented.github.io/modelDown/ | ||
== Books == | |||
* [https://www.amazon.com/Tidy-Modeling-Framework-Tidyverse/dp/1492096482/ Tidy Modeling with R: A Framework for Modeling in the Tidyverse] | |||
* [https://www.amazon.com/Feature-Engineering-Selection-Chapman-Science/dp/1032090855/ Feature Engineering and Selection (Chapman & Hall/CRC Data Science Series)] | |||
= Examples = | |||
== Diabetes data == | |||
[https://lorentzen.ch/index.php/2024/01/07/explain-that-tidymodels-blackbox/ Explain that tidymodels blackbox!] | |||
= tidyAML = | |||
* https://cran.r-project.org/web/packages/tidyAML/index.html | |||
* [https://www.r-bloggers.com/2023/12/exploring-tidyaml-simplifying-regression-analysis-in-r/ Exploring TidyAML: Simplifying Regression Analysis in R] | |||
* [https://www.r-bloggers.com/2023/12/comparing-many-models-with-fast-regression/ Comparing many Models with Fast Regression], [https://rdrr.io/cran/tidyAML/man/fast_regression.html ?fast_regression] |
Latest revision as of 16:49, 6 April 2024
Tidymodels and tune
- tidymodels, tune
- https://www.tidymodels.org/
- Tidy Modeling with R
- AWESOME tidymodels
- *Translations of the ISLR labs into using the tidymodels set of packages
- Survival
- Caret for Survival Analysis?
- Survival Methods in tidymodels, 2021/11/2
- censored package. censored is a “parsnip-adjacent” packages with model definitions for censored regression and survival analysis models.
- Survival analysis for time-to-event data with tidymodels 2024/4/3.
- A Gentle Introduction to tidymodels
- Julia Silge Handle class imbalance in climbing expedition data with tidymodels
- Parallel processing with tune
- Tutorial on tidymodels for Machine Learning
- Julia Silge Lasso regression using tidymodels and #tidytuesday data for the office
- Explore the data: transmute(), mutate(), select(), count(), add_count(), filter(), select(), pivot_wider(), distinct(), pivot_longer(), separate_rows(), add_count(), filter(), distinct(), mutate(), pivot_wider(), inner_join(), janitor::clean_names(), geom_boxplot()
- Train a model: initial_split(), training(), testing(), recipe(), update_role(), step_zv(), step_normalize(), prep(), linear_reg(), set_engine(), workflow(), add_recipe(), add_model(), fit(), pull_workflow_fit(), tidy()
- Tune lasso parameters: bootstraps(), linear_reg(), set_engine(), grid_regular(), registerDoParallel(), tune_grid(), add_model(), collect_metrics(), geom_errorbar(), geom_line(), facet_wrap(), scale_x_log10(), theme(), select_best(), finalize_workflow(), add_model(), pull_workflow_fit(), geom_col(), scale_x_continuous(), last_fit(), collect_metrics()
- Tidymodel and glmnet - Jun
- Tidymodels: tidy machine learning in R - Rebecca Barter
- Tidy Model Stacking 2021 John M. Chambers Statistical Software Award.
- Julia Silge Explore art media over time in the #TidyTuesday Tate collection dataset
- Julia Silge Supervised Machine Learning for Text Analysis in R is now complete,
- Online book https://smltar.com/
- Intro to tidymodels with NFL data
- Julia Silge Multiclass predictive modeling for #TidyTuesday NBER papers. penalty was tuned over a grid of possible penalty parameters by using tune_grid(), doParallel and select_by_one_std_err(). There is also a confusion matrix plot and ROC curves for each class.
- Build and tune a model: initial_split(), training(), test(), vfold_cv(), recipe(), multinom_reg(), set_mode(), set_engine(), workflow(), grid_regular(), tune_grid(), autoplot(), show_best()
- Choose and evaluate a final model: select_by_one_std_err(), finalize_workflow(), last_fit(), collect_metrics(), conf_mat(), collect_predictions(), roc_curve(), extract_workflow(), predict()
- TidyModels or CARET – how they compare?
- Explore data: separate(), mutate(), filter(), select(), geom_point(), geom_smooth, scale_color_viridis_c(), geom_boxplot(), geom_jitter(), theme()
- Build and fit a workflow set: filter(), initial_split(), training(), testing(), vfold_cv(), recipe(), step_other(), step_dummy(), step_bs(), rand_forest(), set_mode(), set_engine(), linear_reg(), workflow_set(), registerDoParallel(), workflow_map()
- Evaluate workflow set: autoplot(), collect_metrics(), extract_workflow(), fit(), tidy(), arrange()
- LASSO models in tidymodels from STAT 253: Statistical Machine Learning
- Lasso model spec: linear_reg(), set_args(), set_engine(), set_mode()
- Recipe with standardization: recipe(), step_nzv(), step_novel(), step_normalize(), step_dummy()
- Workflow: workflow(), add_recipe(), add_model()
- Fit model:: fit()
- Examine the model for each lambda: plot( extract_fit_parsnip()) , pluck()
- Identifying the best Lasso model: vfold_cv(), grid_regular(), tune_grid()
- Visualize model evaluation metrics from tuning: autoplot(), theme_classic()
- Summarize model evaluation metrics: collect_metrics(), filter(), select()
- Fit final model: finalize_workflow(), fit(), tidy()
- TidyModels hands on for the NHS-R community – building a supervised ML classification model from scratch
- Closing out our year with a Q4 2021 tidymodels update
- A Tidymodels Tutorial 2023/4/10
- Tidymodels Machine Learning: Diabetes Classification
stacks
https://stacks.tidymodels.org/, JSM 2021 John Chambers Award Recipient
modelDown
https://modeloriented.github.io/modelDown/
Books
- Tidy Modeling with R: A Framework for Modeling in the Tidyverse
- Feature Engineering and Selection (Chapman & Hall/CRC Data Science Series)
Examples
Diabetes data
Explain that tidymodels blackbox!