kyleskom / NBA-Machine-Learning-Sports-Betting

NBA sports betting using machine learning
1.2k stars 435 forks source link

Error when running python3 main.py -xgb -odds=fanduel #309

Closed dexinthecity closed 1 year ago

dexinthecity commented 1 year ago

What am I doing wrong?

Screenshot 2023-10-23 010229

tunetyme commented 1 year ago

I beleive it is the version of Python.

kyleskom commented 1 year ago

What version on python are you using?

dexinthecity commented 1 year ago

What version on python are you using?

I ended up getting it to work with the help of chatgpt LOL

I'm able to generate recommendations now. There is however this warning that pops up

"main.py:53: FutureWarning: The argument 'date_parser' is deprecated and will be removed in a future version. Please use 'date_format' instead, or read your data in as 'object' dtype and then call 'to_datetime'. schedule_df = pd.read_csv('Data/nba-2023-UTC.csv', parse_dates=['Date'], date_parser=dateparse) main.py:53: FutureWarning: The argument 'date_parser' is deprecated and will be removed in a future version. Please use 'date_format' instead, or read your data in as 'object' dtype and then call 'to_datetime'. schedule_df = pd.read_csv('Data/nba-2023-UTC.csv', parse_dates=['Date'], date_parser=dateparse)"

kyleskom commented 1 year ago

Thats fine, just a warning.

tgbgb commented 1 year ago

_

what was the fix. Getting the same issue

tgbgb commented 1 year ago

NM. requires python 3.11.

ethan-hurst commented 1 year ago

Isn't this tensor flow for apple metal? If you're on windows. Drop it from the requirements