8000 GitHub - leemingo/sr-press: This is the repository for valuing individual players within pressing situation in football with symbolic regression methods.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This is the repository for valuing individual players within pressing situation in football with symbolic regression methods.

Notifications You must be signed in to change notification settings

leemingo/sr-press

Repository files navigation

exPress

This repository presents exPress (Explainable & Expected Press), a framework for quantifying pressing situations in football by analyzing individual player positioning and movements

installation and environment

git clone https://github.com/leemingo/sr-press.git
cd sr-press
pip install -r requirements.txt

Library

  • This project was developed using Python 3.9.20.
  • Install the necessary libraries:
  • To use the latest version of the socceraction library, you need to clone it directly from GitHub because it cannot be updated through standard installation methods.
  • Since only the socceraction package is required, set socceraction/socceraction as the root directory and remove all other unnecessary files.
git clone https://github.com/statsbomb/open-data.git
git clone https://github.com/ML-KULeuven/socceraction.git

How to access data

  • The stores directory contains the features and labels, but due to storage limitations, not all features have been processed and included here.
🗂️ stores
├── 📄 train_database.sqlite      # Database for training data
├── 📄 test_database.sqlite       # Database for testing data
├── 🗂️ model                      # Directory for storing trained models
└── 🗂️ datasets                   # Directory containing feature and label datasets
    ├── 🗂️ train                  
    │   ├── 📄 x_actiontype_onehot.parquet     
    │   ├── 📄 x_ball_height_onehot.parquet    
    │   ├── 📄 x_extract_all_players.parquet  
    │   ├── 📄 x_speed.parquet      
    │   ├── 📄 ...              
    │   └── 📄 y_counterpress.parquet          
    └── 🗂️ test                    
        ├── 📄 x_actiontype_onehot.parquet     
        ├── 📄 x_ball_height_onehot.parquet   
        ├── 📄 x_extract_all_players.parquet   
        ├── 📄 x_speed.parquet  
        ├── 📄 ...         
        └── 📄 y_counterpress.parquet  

exPress Module

  • databases: Data access and SPADL conversion (implemented _fix_pressure in base.py).
  • features, labels: Define features and labels.
  • component: Train the exPress model.
  • simulates.py: Predict xP based on various position changes.

Training Module

Training the XGBoost Model

python train.py \
--model xgboost \
--trial 0 \
--params_file params.json \
--nb_prev_actions 3 \
--xfns "startlocation" "closest_11_players" \
--yfns "counterpress"

Training SoccerMap Model

python train.py \
--model soccermap \
--trial 1 \
--params_file params.json \
--nb_prev_actions 3 \
--xfns "startlocation" "freeze_frame_360" \
--yfns "concede_shots"

Research

please consider citing the following papers:

  • Minho Lee, Geonhee Jo, Miru Hong, Pascal Bauer, and Sang-Ki Ko. Contextual Valuation of Individual Players Within Pressing Situations in Football. In 2025 MIT Sloan Sports Analytics Conference.
    [ paper | github ]

Affiliations

This research is conducted by Korea AI Research Society for Sports (KAISports).

About

This is the repository for valuing individual players within pressing situation in football with symbolic regression methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0