Giter Site home page Giter Site logo

crystalball's Issues

How can i run script

Hi sidhart,
how are you?
i have a question
How can i run script?, but i dont know that script i should run.

More date sources

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 !

Feature: Connect to Betfair

Hi,

Would you be interested in connecting to Betfair and automating the betting(paper)?

Would be an interesting exercise!

Need somes info

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 ;) )

Running Script

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,

trouble running

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.