{"id":1988,"date":"2021-04-05T14:00:45","date_gmt":"2021-04-05T14:00:45","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=1988"},"modified":"2021-04-05T14:02:42","modified_gmt":"2021-04-05T14:02:42","slug":"tidyx-55-decision-trees-random-forest-optimization","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-55-decision-trees-random-forest-optimization\/","title":{"rendered":"TidyX 55: Decision Trees, Random Forest, &#038; Optimization"},"content":{"rendered":"<p><strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\">Ellis Hughes<\/a><\/span><\/strong> and I continue our series on classification of MLB pitch types by working with Decision Trees and Random Forests.<\/p>\n<p>We discuss:<\/p>\n<ul>\n<li>Building a decision tree<\/li>\n<li>Building a random forest<\/li>\n<li>The advantage of random forests over decision trees<\/li>\n<li>Tuning the random forest using the {<strong>caret<\/strong>} package using parallel processing<\/li>\n<li>Evaluating the model&#8217;s classification accuracy overall and within pitch<\/li>\n<\/ul>\n<p>To watch our screen cast, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/thebioengineer\/TidyX\/tree\/master\/TidyTuesday_Explained\/055-MLB_pitch_classification_3\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n<p>To access our code, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/github.com\/thebioengineer\/TidyX\/tree\/master\/TidyTuesday_Explained\/055-MLB_pitch_classification_3\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n<p>Previous screen casts in this series:<\/p>\n<ol>\n<li><strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-53-mlb-pitch-classification-series-eda-hierarchical-clustering\/\">Episode 53: Pitch Classification &amp; EDA<\/a><\/span><\/strong><\/li>\n<li><strong><a href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-54-mlb-pitch-classification-series-knn-umap\/\"><span style=\"color: #0000ff;\">Episode 54: KNN &amp; UMAP<\/span><\/a><\/strong><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Ellis Hughes and I continue our series on classification of MLB pitch types by working with Decision Trees and Random Forests. We discuss: Building a decision tree Building a random forest The advantage of random forests over decision trees Tuning the random forest using the {caret} package using parallel processing Evaluating the model&#8217;s classification accuracy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-1988","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1988","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=1988"}],"version-history":[{"count":3,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1988\/revisions"}],"predecessor-version":[{"id":1991,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/1988\/revisions\/1991"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=1988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=1988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=1988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}