{"id":2204,"date":"2021-12-29T02:27:40","date_gmt":"2021-12-29T02:27:40","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=2204"},"modified":"2022-11-08T03:38:26","modified_gmt":"2022-11-08T03:38:26","slug":"tidymodels-model-fitting-template","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidymodels-model-fitting-template\/","title":{"rendered":"Tidymodels model fitting template"},"content":{"rendered":"<p>We recently completed a 10 episode series on the <span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/tidy_explained\">Tidy Explained<\/a><\/strong><\/span> screen cast about building models within the {<strong>tidymodels<\/strong>} framework of R.<\/p>\n<p>To tie it the series together I put together an RMarkdown file that walks through the model fitting process in {<strong>tidymodels<\/strong>}. The RMarkdown template provides a step-by-step process that one can take when building {<strong>tidymodels<\/strong>} on their own data.<\/p>\n<p>If you knit the RMarkdown template, you will get an html report that covers the basics of:<\/p>\n<ul>\n<li>Splitting data into training, testing, and cross validation sets<\/li>\n<li>Specifying models<\/li>\n<li>Pre-processing with model recipes<\/li>\n<li>Setting up workflows and workflowsets<\/li>\n<li>Fitting models and parameter tuning<\/li>\n<li>Evaluating model outputs<\/li>\n<li>Making predictions on test data<\/li>\n<li>Saving the model workflow for future model deployment<\/li>\n<li>Loading the saved model workflow and deploying it on a new data set<\/li>\n<\/ul>\n<p>To access the template, go to my <strong><a href=\"https:\/\/github.com\/pw2\/tidymodels_template\"><span style=\"color: #0000ff;\">GITHUB page<\/span><\/a><\/strong>.<\/p>\n<p>Below are the 10 {<strong>tidymodels<\/strong>} episodes we did on <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/tidy_explained\">Tidy Explained<\/a><\/span><\/strong> if you&#8217;d like to see the processes performed in real time:<\/p>\n<p><span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-77-intro-to-tidymodels\/\">TidyX 77: Intro to tidymodels<\/a><\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-78-splits-recipes\/\">TidyX 78: Splits &amp; Recipes<\/a><\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-79-tidymodels-cross-validation-and-model-metrics\/\">TidyX 79: Cross-Validation &amp; Model Metrics<\/a><\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-80-tuning-decision-trees-in-tidymodels\/\">TidyX 80: Tuning Decision Trees<\/a><\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-81-tidymodels-logistic-regression\/\">TidyX 81: Logistic Regression<\/a><\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-82-random-forest-classifier-using-tidymodels\/\">TidyX 82: Random Forest Classifier<\/a><\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-83-naive-bayes-classifier-using-tidymodels\/\">TidyX 83: Naive Bayes Classifier<\/a><\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-84-workflowsets-in-tidymodels\/\">TidyX 84: Workflowsets<\/a><\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-85-workflowsets-parameter-tuning\/\">TidyX 85: Workflowsets &amp; Parameter Tuning<\/a><\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-86-tidymodels-interview-with-julia-silge\/\">TIdyX 86: Tidymodels interview with Julia Silge<\/a><\/strong><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We recently completed a 10 episode series on the Tidy Explained screen cast about building models within the {tidymodels} framework of R. To tie it the series together I put together an RMarkdown file that walks through the model fitting process in {tidymodels}. The RMarkdown template provides a step-by-step process that one can take when [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[47,45],"tags":[],"class_list":["post-2204","post","type-post","status-publish","format-standard","hentry","category-model-building-in-r","category-r-tips-tricks"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/2204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/comments?post=2204"}],"version-history":[{"count":3,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/2204\/revisions"}],"predecessor-version":[{"id":2207,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/2204\/revisions\/2207"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=2204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=2204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=2204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}