- activate
source venv/bin/activate - deactivate
deactivate
pip install -r requirements.txt
python3 run_fetch.py --season <year>
python model/train_model.py
- 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"
}'
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%
pip freeze > requirements.txt