Rocket League detailed stat dashboard with expected goals analysis.
See dashboard here: https://sertalpbilal.github.io/rocket_league_analytics
The xG model file is under src/xg_model
.
The model depends on having a valid key from ballchasing.com API.
Steps:
- Setting up environment
Add your BallChasing token to.env.sample
file and rename it to.env
- Collecting random game data (optional)
Navigate tosrc/scripts
and runpython collect_model_games.py
This step will download latest 1000 ranked double games underdata/model
directory. - Generating xG model (optional)
Runpython generate_xg.py
to populate xG model.
Note that you might need to run this inside a Docker container if you cannot installcarball
package.
This step will populate two files underdata/model
:xg.model
(gradient boosting xG model) andxg.scaler
(feature scaler) - Download your games
You can go toscripts
folder and runpython download_my_games.py
This step will download your games todata/replay
and will populatedata/json
anddata/dataframe
directories for future use. - Generate the dashboard
Finally you can go tosrc
and runpython boxcartest.py
to populate the dashboard.
Click here to view in an alternative format
Click here to view in an alternative format
Alongside all of the charts produced by the program, the program also outputs 11 tables.
Tables for the latest streak of matches can be found here.