Skip to content

seidlr/LaurieOnTracking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaurieOnTracking

Laurie's code for reading and working with Metrica's tracking and event data.

The sample data can be found in Metrica's github repository here: https://github.com/metrica-sports/sample-data

We'll be updating this repo as the friends of tracking series develops, adding code for measuring player velocity and acceleration, measuring team formations, and evaluating pitch control using a model published by Will Spearman.

To create movies from the tracking data you'll need to have ffmpeg installed. You can do this by following the instructions here: https://anaconda.org/conda-forge/ffmpeg (you may need to restart python afterwards).

Notebooks

If you want to run the notebooks for each session, you can either install the repository locally or run it directly on Binder or Google Colab. In case you do not know, use Google Colab!

  • Run each cell in the notebook and ignore the warning about the unknown environment.
  • The data is downloaded directly from Metricas repository.
  • Give it some time when it says "Readining team home" in a cell.
Lesson Binder Colab
Lesson 4 - Basic Plotting of Event and Tracking Data Binder Open In Colab
Lesson 5 - Advanced Plotting and Summary Statistics Binder Open In Colab
Lesson 6 - Pitch Control Binder Open In Colab

Local installation

  1. Download Anaconda
  2. Clone repository
  3. Create environment fotd-laurie-on-tracking:
conda env update
  1. Start jupyter notebook server
jupyter notebook
  1. Select the kernel fotd-laurie-on-tracking for your notebook

About

Laurie's code for Metrica tracking data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 94.7%
  • Python 5.3%