Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

Activate venv

  • activate source venv/bin/activate
  • deactivate deactivate

Install Packages

  • pip install -r requirements.txt

Fetching past games data

  • python3 run_fetch.py --season <year>

Training the model

  • python model/train_model.py

Running prediction

Flask server

  • Run server by python app.py
  • curl prediction example
curl -X POST http://localhost:5000/predict \
  -H "Content-Type: application/json" \
  -d '{
        "home_team": "Arsenal",
        "away_team": "Wolverhampton",
        "date": "2026-08-17T18:30"
      }'

termianal

  • python predict_match.py --home_team "Arsenal" --away_team "Wolverhampton" --date 2026-09-09T23:00

Result should be something like:

Probabilities:
🤝 Draw:        25.18%
🏠 Home win:   33.19%
🚗 Away win:       41.64%

Adding deps to requirements.txt

  • pip freeze > requirements.txt

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages