edouardthom / atpbetting Goto Github PK
View Code? Open in Web Editor NEWA strategy for tennis matches betting
A strategy for tennis matches betting
Hi I'm super new to coding and python and machine learning. I'm really impressed with this and was wonder how you would adapt this so that when you entered in 2 players and the parameters of the match and get a prediction? Are their any other resources or points anyone can give me?
Traceback (most recent call last):
File "D:\Coding\002\ATPBetting\ATPBetting-master\Python\main.py", line 53, in
data.to_csv("../Generated Data/atp_data.csv",index=False)
File "C:\Users\Krist\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pandas\core\generic.py", line 3387, in to_csv
return DataFrameRenderer(formatter).to_csv(
File "C:\Users\Krist\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pandas\io\formats\format.py", line 1083, in to_csv
csv_formatter.save()
File "C:\Users\Krist\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pandas\io\formats\csvs.py", line 228, in save
with get_handle(
File "C:\Users\Krist\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pandas\io\common.py", line 642, in get_handle
handle = open(
FileNotFoundError: [Errno 2] No such file or directory: '../Generated Data/atp_data.csv'
PS D:\Coding\002\ATPBetting\ATPBetting-master\Python>
Got this error
I'm not a python guy and if you can make a howtorun.md that will be perfect for me and the non python guys. Nice work !!!
It runs ok until this error comes up:
main.py:99: FutureWarning: In a future version of pandas all arguments of concat except for the argument 'objs' will be keyword-only features_onehot = pd.concat([features_categorical_encoded,players_encoded,tournaments_encoded],1) main.py:126: FutureWarning: In a future version of pandas all arguments of concat except for the argument 'objs' will be keyword-only features = pd.concat([features_odds, Traceback (most recent call last): File "main.py", line 152, in <module> test_beginning_match=data[data.Date==start_date].index[0] #id of the first match of the testing set File "/Users/peter/Library/Python/3.8/lib/python/site-packages/pandas/core/indexes/base.py", line 4604, in __getitem__ return getitem(key) IndexError: index 0 is out of bounds for axis 0 with size 0
Can someone assist with this so I can run the code properly?
Since it's been 2 years already! Could you share the source for the xlsx data for 2019 and 2020?
EmptyDataError Traceback (most recent call last)
in
1 # Our predictions + confidence level + if we were right or not
----> 2 conf=pd.read_csv("Generated Data/confidence_data.csv")
3 print("Total number of matches predicted : "+str(len(conf)))
I'm new to python and everything, I tried to open the code but it automatically closes.
What can I be doing wrong?
Hello.
I successfully ran your code. But I got a little worse confidence than in your confidence_data.csv file here. Also, I got 8428 rows in this file instead of your 11054. I saw this comment which says the same thing.
So, how can I get the same confidence_data.csv file as yours?
almost finishing compilation I got this error
24200/24481 matches treated.
24300/24481 matches treated.
24400/24481 matches treated.
Traceback (most recent call last):
File "main.py", line 83, in
features_player=load("player_features")
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.