kochlisGit / ProphitBet-Soccer-Bets-Predictor

ProphitBet is a Machine Learning Soccer Bet prediction application. It analyzes the form of teams, computes match statistics and predicts the outcomes of a match using Advanced Machine Learning (ML) methods. The supported algorithms in this application are Neural Networks, Random Forests & Ensembl Models.
MIT License
284 stars 104 forks source link

Create a League #31

Open newtek1974 opened 10 months ago

newtek1974 commented 10 months ago

Good evening. When I try to create an extra league, I get this error:

File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\gui\dialogs\league.py", line 115, in _store_league matches_df, league = self._league_repository.create_league( File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\database\repositories\league.py", line 90, in create_league return self._store_league( File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\database\repositories\league.py", line 52, in _store_league matches_df = StatisticsEngine( File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\preprocessing\statistics.py", line 51, in compute_statistics matches_df[column] = self._statistics_mapper[column]() File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\preprocessing\statistics.py", line 57, in _compute_last_n_home_wins return self._compute_last_results(team_index=1, target_result_value='H') File "D:\DOWNLOAD\ProphitBet-Soccer-Bets-Predictor-main\preprocessing\statistics.py", line 71, in _compute_last_results for season in range(self._max_season, self._min_season - 1, -1): TypeError: unsupported operand type(s) for -: 'str' and 'int'

this is the string I put in available league: Argentina,Primera-division,https://www.football-data.co.uk/new/ARG.csv,2012,extra,https://footystats.org/argentina/primera-division/fixtures

Great project I'm ready to contribute!

kochlisGit commented 10 months ago

ok i see... there is an error in their csv file. They have incorrect format (or at least different format than the rest of csv files). I will see if i can fix it as well.

Diksi commented 7 months ago

Hello, I have the same problem with some leagues. Ex. Denmark, Austria. Were you able to fix it? Thank you very much