Skip to content
/ f1ml Public
forked from Jared-Chan/f1ml

Formula One Race Lap-by-Lap Prediction with Machine Learning

Notifications You must be signed in to change notification settings

adkmmm/f1ml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formula One Race Lap-by-Lap Prediction with Machine Learning

webpage

This website features two machine learning models that can predict lap times, positions, pit stop strategies as well as events like collisions for up to 20 drivers throughout a whole race.

Other features:

  • 2 models to choose from. One trained with 20 years of data, the other trained with historical pit stop data starting from 2012 (This model is currently not available due to size limitations).
  • Interactive slider to look at lap times, statuses, etc of any lap during the race.
  • Colorful graph to easily grasp drivers' positions through out the race.
    graph
  • 20 years of historical data to predict what could have happened. Using the Ergast Developer API, you can choose from any race since 2001 and let the model envision an alternate ending.
  • Randomness factor to add unlimited possibilities.

Some predictions made by the models:

  • This is a prediction on the 2021 Imola Grand Prix. While the model could not accurately predict crashes, the results are sensible.
    2021 Imola
  • Some predictions are quite far off reality. This is a prediction on a 2020 race. The model predicted that Hass would have two drivers on the podium.
    2020 Hungaroring
  • With a lot of added randomness, the model gives very eventful races.
    chaotic

More on the making of the models here.

This website uses SessionState by tvst.

About

Formula One Race Lap-by-Lap Prediction with Machine Learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 98.1%
  • Python 1.9%