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
281 stars 104 forks source link

Predict Fixture Dates Issue #50

Open keith0811 opened 7 months ago

keith0811 commented 7 months ago

https://prnt.sc/JljkAN3qnTrt

Manage to parse the fixture as 12 Nov. but the match and odds are not matched. Name of home and away team is not correct.

KnightRider37 commented 7 months ago

Yes, you have to play around with the code in "parser.py" file.

you can try
for i in range(1, (num_matches * 5) + 1, 5): odds_1.append(odd_lines[i].split('>')[1].split('<')[0].replace('\n', '')) odds_x.append(odd_lines[i + 1].split('>')[1].split('<')[0].replace('\n', '')) odds_2.append(odd_lines[i + 2].split('>')[1].split('<')[0].replace('\n', '')) return odds_1, odds_x, odds_2

instead of what's in the file now. It's not perfect, but works a bit better.

keith0811 commented 7 months ago

Thanks. I realise we can manually change the home/away team and its odds.

KnightRider37 commented 7 months ago

Thanks. I realise we can manually change the home/away team and its odds.

Yes, it can be done for both teams and also for the odds, but it's very time-consuming.