Coder Social home page Coder Social logo

xg_soccer's Introduction

xG_Football

Predicting xG using Bayesian Networks

This project is about using Probabilistic Graphical Models, like Bayesian Networks, to predict Expected Goals. I have also implemented a Gradient Boosting Classifier as a base model. Both the models use data from Kaggle's "Football-events" (https://www.kaggle.com/secareanualin/football-events) to train and subsequently are tested on real-life Football shots. The contents of this repository include the codes for implementation of both the models along with the data used. Both codes are written in Python. GradientBoosting.py contains data preprocessing on raw data and subsequent GB model implementation. It uses scikit learn to implement and infer from the model. BayesianNetworkModel.py contains a similar pre processing to get refined data for model training. The code uses the pgmpy package of Python for model implementation and inference (using variable elimination). The data consists of the events.csv file containing the raw data, dictionary.txt containing a guide to the data and ginf.csv which contains metadata and market odds about each game. The codes give output for the test cases (real matches shots) as xG for the particular shot.

xg_soccer's People

Contributors

dakshs07 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.