GithubHelp home page GithubHelp logo

nicholasrios / football-analytics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ben8t/football-analytics

0.0 0.0 0.0 585.77 MB

Python 0.30% Dockerfile 0.02% Jupyter Notebook 1.28% TSQL 0.04% HTML 88.72% PLpgSQL 0.01% R 0.48% Rebol 0.01% CSS 4.60% JavaScript 4.53%

football-analytics's Introduction

Football Models and Visualisations


This repository is a personal project where I develop football models and visualisations.

It's build on top of different technologies such as:

  • Python: for data processing and machine learning (Tensorflow, Scikit-Learn and MLFlow).
  • R: all data-visualisation stuff (dplyr, ggplot2, magick).
  • Postgres SQL: storing and querying data easily.
  • Docker: to orchestrate all these elements together and easy install/startup.
  • Google Cloud Plateform: to run heavy jobs in cloud.

Samples & Results

pass-network

pass-sonar

assist-shot cluster map

rollmean

xg-map

xa-map

image

image

image

Architecture

The project contains five folders:

  • ./app : maybe deprecated design, mostly for data integration and easy of use.
  • ./data: where raw data are stored (in addition to the database). Not in git ๐Ÿ˜‰.
  • ./model: machine learning models (expected goal for example).
  • ./src: source file for crawlers, database connection/ingestion, SQL queries, etc...
  • ./visualisation: source code for data-visualization, most recent works (on maps) are in ./visualisation/maps subfolders.

Usage

Running model applications

  1. Start corresponding container: docker-compose up -d model.
  2. For ease of use, going into the container: docker exec -it model bash
  3. All data are mapped to the local environment: cd /data
  • Expected goal model: python -m model.expected_goal.main --help.
  • Expected assist model: python -m model.expected_assist.main --help.
  • Possession2Vec model: python -m model.pass2vec.main --help

Running Passmaps vizualisations

  1. Start corresponding container: docker-compose up -d passmap.
  2. Go to http://localhost:8082/.

TODO

  • Improve models
  • Add more documentations.
  • Clean some viz stuff.
  • Better Docker management.

Contacts

Any questions/improves on Twitter @Ben8t.

football-analytics's People

Contributors

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