Skip to content

algobeans/Random-Forests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Forests

Layman's tutorial to random forests, explained in detail at: https://algobeans.com/2021/03/29/random-forest-tutorial-predicting-goals-in-football/

Random Forest Output: Heatmap of goal probabilities based on the location where a shot was attempted. Red and orange areas indicate high probability of scoring if a shot was made at that location, whereas blue and green areas indicate low probability of scoring.

As a reference of football data, the scatterplot below depicts a sample of shots from the Wyscout dataset. Each dot represents the location where a shot was attempted, with red dots representing successful goals.

Example of Ensemble Voting. Models 1, 2, and 3 are individual models attempting to predict 10 outputs, where Blue is the correct output and Red is the wrong output. An ensemble model is formed by majority voting, i.e. if two models predict Blue and one model predicts Red, the ensemble predicts Blue. Here, the ensemble model scored 8/10, higher than individual models, which scored at most 7/10.

Histogram showing the RMSE of 1000 decision trees. While their RMSE averages at 0.299, with the best score at 0.296, the random forest model had an RMSE of 0.288, which is best among all of its constituent decision trees.

Illustration: How a tree is created in a random forest.

Layman's tutorial to random forests, explained in detail at: https://algobeans.com/2021/03/29/random-forest-tutorial-predicting-goals-in-football/

About

Layman's tutorial to Random Forests, and how it can help us to predict the probability of a goal in football, with applications ranging from performance appraisal to match-fixing detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages