msoczi / football_predictions

Predicting the results of matches in European leagues
MIT License
22 stars 13 forks source link

Evaluation of other leagues #1

Open AlessandroMecchia opened 1 year ago

AlessandroMecchia commented 1 year ago

Hi @msoczi, nice work! Is it possible to evaluate other leagues by importing the data? For example, minor leagues or other leagues in general. Thank you

msoczi commented 1 year ago

Do you mean is it possible to predict match scores for other leagues? Or just check the quality of the model on other data (other league)? Which specific leagues?

AlessandroMecchia commented 1 year ago

hi @msoczi, thank you very much for the quick response! I renew my congratulations for the nice project. I wanted to know if it was possible to predict other matches of other leagues as well since in READ.ME you wrote that currently it is possible to predict only the four major leagues listed, i think because the model is trained only on those. It is also possible to have other statistics such as: probability number of Home/Tournament goals, Time Result, etc.?

msoczi commented 1 year ago

It is possible to add new leagues, provided that the data is available. The process get the data from football-data.co.uk. If there is data on the league you are interested in, you can easily add this league (or I can do it if you want). When it comes to predicting the outcome, the current model won't do that. The objective function is constructed in such a way as to solve the multiclassification task. In order to predict the outcome of the match, e.g. 3:1, you need to build a different solution. This, in turn, is a bit more difficult task, but I encourage you to try it.

AlessandroMecchia commented 1 year ago

@msoczi once I've imported the league data I'm interested in and saved it in the data folder, what file should I edit to allow me to run the results prediction?

msoczi commented 1 year ago

Predictions are also based on data from other sources, so it is not enough to download them from https://www.football-data.co.uk/. To add a new league, you need to perform several actions, e.g. properly complete the config.yaml dictionary, then use the create_hist_data.py script that will create model variables from raw data.

AlessandroMecchia commented 1 year ago

@msoczi so I don't need to download any additional data from https://www.football-data.co.uk/ ? after what you explained I can then run python scripts/main_script.py

AlessandroMecchia commented 1 year ago

hi @msoczi, is it then possible to add for example the Dutch league or the Swiss league? if so how?

msoczi commented 1 year ago

Yes, it is possible to add the Dutch league. Unfortunately, the data on the Swiss league is insufficient and this league will not be covered by the current model. I'll add the Dutch league to my predictions when I'll have time, okay?

AlessandroMecchia commented 1 year ago

@msoczi more so as not to bother you every time, I wanted to know the process for adding a soccer league (like Dutch league or English championship) to the program

msoczi commented 1 year ago

You have to do: 1) Download the appropriate .csv file from https://www.football-data.co.uk/netherlandsm.php 2) Complete the config.yaml configuration file - add necessary maping 3) Run the main_script.py script and give the appropriate league name as an argument. An .html file with the results will then be created in the output_tables directory.

lPauI commented 2 months ago

You have to do:

  1. Download the appropriate .csv file from https://www.football-data.co.uk/netherlandsm.php
  2. Complete the config.yaml configuration file - add necessary maping
  3. Run the main_script.py script and give the appropriate league name as an argument. An .html file with the results will then be created in the output_tables directory.

Hi. For the previous matches CSV I use: https://www.football-data.co.uk/romania.php

But how about for the next fixtures? I don't find anything in skysports for Romanian Superliga (Liga 1).