Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluation of other leagues #1

Open
AlessandroMecchia opened this issue Mar 20, 2023 · 11 comments
Open

Evaluation of other leagues #1

AlessandroMecchia opened this issue Mar 20, 2023 · 11 comments

Comments

@AlessandroMecchia
Copy link

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
Copy link
Owner

msoczi commented Mar 21, 2023

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
Copy link
Author

AlessandroMecchia commented Mar 21, 2023

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
Copy link
Owner

msoczi commented Mar 22, 2023

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
Copy link
Author

@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
Copy link
Owner

msoczi commented Apr 1, 2023

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
Copy link
Author

@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 <LEAGUE_NAME>

@AlessandroMecchia
Copy link
Author

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

@msoczi
Copy link
Owner

msoczi commented Apr 24, 2023

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
Copy link
Author

@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
Copy link
Owner

msoczi commented Apr 25, 2023

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
Copy link

lPauI commented Aug 15, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants