Git Product home page Git Product logo

paritennis's Introduction

Pari Tennis

Machine learning on Tennis Bets !

How to use

Startup

  • create a fresh virtual environment : py -m venv env
  • on visual studio code you might have to elevate your prompt : Set-ExecutionPolicy Unrestricted -Scope Process
  • activate your environment : .\env\Scripts\activate
  • active your virtual environment : py -m pip install -r requirements.txt

launch Streamlit

  • on visual studio code you might have to elevate your prompt : Set-ExecutionPolicy Unrestricted -Scope Process
  • activate your environment : .\env\Scripts\activate
  • go in the streamlit folder : cd .\streamlit_app\
  • launch Streamlit : streamlit run app.py

Scrapping data

Formatting data

What generate_training_dataset does :

  1. Merge scrapped atp match data + scrapped atp players data + scrapped tennis-data.co.uk alltogeter per match
  2. winner player is rename as player 1, loser player is rename as player 2
  3. 50% of the data are randomly schuffled (inverting player 1 and player 2) so that winner may be 1 or 2

Todo

scrapping :

  • get odds

Get players :

  • performance per tournament (habits to go in finals)
  • progression over last X month / last X tournaments
  • timeplay regularity
  • overall performance over higher ranking
  • overall performance over below ranking
  • did this tournament already (yes :1 : no : 0)
  • lefty / righty
  • intéger la fréquence moyenne de blessures annuelles dans le roi (le ROI peut il absorber cette perte ?)

Get next tournaments:

  • create a predict function that only use a date parameter to get the next match on the internet

Source

Code in V1 was initally a fork from : https://github.com/edouardthom/ATPBetting Code in V2 is using scrapping code from : https://github.com/serve-and-volley/atp-world-tour-tennis-data

paritennis's People

Contributors

chboudry avatar

Watchers

 avatar

Forkers

dsw225

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.