kyleskom / NBA-Machine-Learning-Sports-Betting

NBA sports betting using machine learning
1.16k stars 431 forks source link

Type Error in Kelly_Critereon.py #248

Closed JasperShoe closed 11 months ago

JasperShoe commented 1 year ago

File "/Users/.../NBA-Machine-Learning-Sports-Betting/src/Utils/Kelly_Criterion.py", line 5, in american_to_decimal if american_odds >= 100: TypeError: '>=' not supported between instances of 'str' and 'int'

Fix: Change home_team_odds[count] to int(home_team_odds[count]) Change away_team_odds[count] to int(away_team_odds[count])

Ambrose997 commented 1 year ago

Huh? Where is home_team_odds?

NumseBacon commented 1 year ago

Doesnt fix the problem

xalppt commented 1 year ago

this method does not seem to fix the issue

godlike007322 commented 11 months ago

i still have the problem

kyleskom commented 11 months ago

There are no games. Its trying to get odds for games that don't exist yet, try again when the season starts.