{"id":3379,"date":"2024-03-24T13:35:48","date_gmt":"2024-03-24T13:35:48","guid":{"rendered":"http:\/\/optimumsportsperformance.com\/blog\/?p=3379"},"modified":"2024-03-24T13:35:48","modified_gmt":"2024-03-24T13:35:48","slug":"tidyx-episode-176-extracting-all-predictions-from-a-random-forest-building-uncertainty-intervals-and-creating-a-player-compare-tool","status":"publish","type":"post","link":"https:\/\/optimumsportsperformance.com\/blog\/tidyx-episode-176-extracting-all-predictions-from-a-random-forest-building-uncertainty-intervals-and-creating-a-player-compare-tool\/","title":{"rendered":"TidyX Episode 176: Extracting all predictions from a Random Forest, Building Uncertainty Intervals, and Creating a Player Compare Tool"},"content":{"rendered":"<p>In this installment of predicting whether MLB pitchers will make the Hall of Fame, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/twitter.com\/ellis_hughes\">Ellis Hughes<\/a><\/span><\/strong> and I take the Random Forest model we built in <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/optimumsportsperformance.com\/blog\/tidyx-episode-175-predicting-hall-of-fame-pitchers-using-random-forests\/\">Episode 175<\/a> <\/span><\/strong><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">and discuss how you can extract the predictions from each of the individual trees and then build uncertainty intervals so that you can construct an entire distribution of predictions. We then take these predictions and build a custom function for comparing the predicted distribution of two players and whether they will make it to the Hall of Fame.<\/span> <\/span><\/p>\n<p><a href=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-24-at-6.34.53\u202fAM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3380\" src=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-24-at-6.34.53\u202fAM-1024x332.png\" alt=\"\" width=\"625\" height=\"203\" srcset=\"https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-24-at-6.34.53\u202fAM-1024x332.png 1024w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-24-at-6.34.53\u202fAM-300x97.png 300w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-24-at-6.34.53\u202fAM-768x249.png 768w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-24-at-6.34.53\u202fAM-624x202.png 624w, https:\/\/optimumsportsperformance.com\/blog\/wp-content\/uploads\/2024\/03\/Screenshot-2024-03-24-at-6.34.53\u202fAM.png 1183w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n<p>To watch the screen cast, <strong><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/watch?v=5iPwS7iNgPY\">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\/blob\/master\/TidyTuesday_Explained\/176-Are_you_sure\/Episode%20176%20-%20Uncertainty%20Intervals%20%26%20Player%20Compare%20Tool%20with%20Random%20Forest.R\">CLICK HERE<\/a><\/span><\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this installment of predicting whether MLB pitchers will make the Hall of Fame, Ellis Hughes and I take the Random Forest model we built in Episode 175 and discuss how you can extract the predictions from each of the individual trees and then build uncertainty intervals so that you can construct an entire distribution [&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-3379","post","type-post","status-publish","format-standard","hentry","category-tidyx-screen-cast"],"_links":{"self":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/3379","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=3379"}],"version-history":[{"count":1,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/3379\/revisions"}],"predecessor-version":[{"id":3381,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/posts\/3379\/revisions\/3381"}],"wp:attachment":[{"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/media?parent=3379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/categories?post=3379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/optimumsportsperformance.com\/blog\/wp-json\/wp\/v2\/tags?post=3379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}