rvdb7345 / FootAI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FootAI

A repo for doing player-based Football match prediction.

This project contains everything that is needed to do predict the outcome of any football game between teams that FIFA has player data for, from games between international teams to a league played in a country.

The project currently focuses on predicting the difference in goals between the home and the away teams. However, solutions are also included for predicting the total end result.

The SHAP explaining is still in developmental phase and is not correctly functional (shap_explaining.py)

Check out this Medium article to get an introduction to the project.

GitHub release License issues - FootAI

rvdb7345 - FootAI stars - FootAI forks - FootAI

What part of the prediction process is covered here?

Thought the scripts in this repo, the following functionalities are implemented in the corresponding files:

  • Scraping historic fixture data (collect_fixtures.py)
  • Aggregating historic fixture data (create_fixture_rdb.py)
  • Aligning team names in fixtures data with those in the FIFA player dataset (match_club_names_fifa_fixutres.py)
  • Composing optimal teams and engineering features based on player FIFA attributes (feature_engineer.py)
  • Training and evaluating a light gradient boosting model (train_evaluate_lgbm.py)
  • Training and evaluating a deep learning model (train_evaluate_dnn.py)
  • Predicting the outcomes of new matches with saved models (predict_new_match_lgbm.py/predict_new_match_dnn.py)
  • Predicting an overall ranking for a set of teams (get_league_ranking.py)

About

License:MIT License


Languages

Language:Python 100.0%