Giter Site home page Giter Site logo

xpoints's Introduction

Xpoints

Exploring XGphilosophy, some basic implementations using data from understat.com's API.
XG - expected goals (The number of goals you would expect a team to score based on the chances they created.)
XP - expected points (The number of points a team is expected to get based on their chances being converted to goals)

Get Xpoints for all games of the season

Test it on your desired team(EPL, La Liga, Ligue 1, Bundesliga, Seria A, RFPL ):

  • Clone the repo
    git clone https://github.com/sandeshpokhrel54/Xpoints.git

  • install requirements
    cd Xpoints
    pip install -r requirements.txt

  • Run fetch_main.py

    • python fetch_main.py --t "Chelsea" --s "2022"

You also get a plot at the end, of the latest fixture the team played.
Liverpool vs Chelsea

Get plots of the latest games of any league

  • Clone the repo
    git clone https://github.com/sandeshpokhrel54/Xpoints.git

  • install requirements
    cd Xpoints
    pip install -r requirements.txt

  • Run fetch_main.py

    • python latest_gw.py --l "la liga" --s "2022"

One by one plot of the latest games played by each team in the league of the given season in matplotlib.
One of the fixtures of last week(epl)

TODO:

  • maybe a bot to tweet xpoints after each game (Thanks to Elon Musk, this is not happening anytime soon).

xpoints's People

Contributors

sandeshpokhrel54 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.