sidharthrajaram / crystalball Goto Github PK
View Code? Open in Web Editor NEW๐ฎ Predicting NBA games using statistics (65% accuracy so far)
๐ฎ Predicting NBA games using statistics (65% accuracy so far)
Hi sidhart,
how are you?
i have a question
How can i run script?, but i dont know that script i should run.
Hi,
First, thank you for your work, is it a very good project !
I'd like to add more date sources i see it's in team_scraper.py
team = team_id.upper()
url = "https://www.basketball-reference.com/teams/" + team + "/2019.html"```
I think it's more precise if you have more date, because in 2019 we have only 2 month past.
I want to scrap 2018 and 2019 years, it's possible to edit easily your code for it ?
Thank you !
Hi,
Would you be interested in connecting to Betfair and automating the betting(paper)?
Would be an interesting exercise!
Hey,
I'v fork the project and i'm looking for work on ;)
Actually i haven't my computer so i can't look python version needing.
Can you give me library and python version you use on master and lib infos ?
I'm looking for create docker adapatation (and i pull it on your project ;) )
Hi,
I'm currently getting the following error, wondering if this is the correct format on running the script.
python3 predict_game.py 2020, DET, 2020, ATL
x@MacBook-Pro CrystalBall-master % python3 predict_game.py 2020, DET, 2020, ATL
Simulation Presets:
Epochs: 100000
Home Team Variation Range Max: 100
Away Team Variation Range Max: 100
Traceback (most recent call last):
File "predict_game.py", line 6, in
simulate_game(sys.argv[1], sys.argv[3], sys.argv[2], sys.argv[4], display_info=True)
File "/Users/zzz/Desktop/CrystalBall-master/sim.py", line 28, in simulate_game
t1_metric = team_score(t1_id, t1_year)
File "/Users/zzzDesktop/CrystalBall-master/sim.py", line 15, in team_score
df = getTeamDf(team_id, year)
File "/Users/zzz/Desktop/CrystalBall-master/sim.py", line 10, in getTeamDf
df_header = get_team_data(team_id, year, header=True)
File "/Users/zzz/Desktop/CrystalBall-master/utils.py", line 12, in get_team_data
team_stats_tuple = getTeamStats(team_id, year)
File "/Users/zzz/Desktop/CrystalBall-master/team_scraper.py", line 14, in getTeamStats
with urllib.request.urlopen(url) as response:
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
thanks,
Hi, im not able to run this as i keep getting the error: Traceback (most recent call last):
File "C:/Users/risin/OneDrive/Documents/GitHub/CrystalBall/predict_game.py", line 6, in
simulate_game(sys.argv[1], sys.argv[3], sys.argv[2], sys.argv[4], display_info=True)
IndexError: list index out of range
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.