View Code? Open in Web Editor
NEW
An advanced machine learning model utilizes a Random Forest Regressor to generate betting recommendations for Major League Baseball (MLB) games.
License: MIT License
recommended-bets-by-email-mlb's Introduction
recommended-bets-by-email-mlb's People
Contributors
recommended-bets-by-email-mlb's Issues
Model should only return 1 recommendation per game. Recommendation should be best team to cover + sportsbook with best odds for maximum profit.
![Screenshot 2023-05-22 at 2 51 39 PM](https://private-user-images.githubusercontent.com/43586291/240007886-f51e9876-4109-4d5f-a9cf-05daec97dfa4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM0NjUwOTQsIm5iZiI6MTcyMzQ2NDc5NCwicGF0aCI6Ii80MzU4NjI5MS8yNDAwMDc4ODYtZjUxZTk4NzYtNDEwOS00ZDVmLWE5Y2YtMDVkYWVjOTdkZmE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEyVDEyMTMxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwMTMwZTViNWJjMzZjZmQ1Y2U1ZmM2NTgxNDNlYTg5ZWY2ZTdkOTIyMjA2MjI4N2VmODllYTg1ZWJkMzlmNmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6Qf3VzUNBXJRTqO-RrZTOhK9QPT_gi7cpAeDOe3cCY8)
Hi,
i tryed to use your Projekt but can't get it work.
find out your file to start is script.py.
the file api.py is not used anyway if im right.
but the fetch_data_from_api() function is asking for an API_LINK i don't now.
what does load_dotenv() do?
and where the hell do i put my API Key. ^^"
Sorry can you help out with this informations? Thanks.
Hi!
I am running into a problem where I am running into a problem with the Odds API. When I tested my API it was working, but when I run it I am getting.
Fetching data from API...
An error occurred: name 'API CODE IS HERE' is not defined
Anything I could change to get this to work?
![image](https://private-user-images.githubusercontent.com/43586291/239375051-edd679f8-fb24-4f74-b368-e354b1137fde.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NDU1MTYsIm5iZiI6MTcyMzU0NTIxNiwicGF0aCI6Ii80MzU4NjI5MS8yMzkzNzUwNTEtZWRkNjc5ZjgtZmIyNC00Zjc0LWIzNjgtZTM1NGIxMTM3ZmRlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEzVDEwMzMzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMzYzlhMTY4NDc3N2I5ZGI3ODhhMmMxZjIwOTk3YTM1YmM2MTVkZmM3OTE2MTViOTUyM2M1NWRkN2U0NWE5MDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ozBlIkreYe3whO4y-b_0uCbrhYxHHbxJIQapuCj-leI)
Teams that are not included in the API dataframe should not be included in the training data. Current function and loops are not solving issue.