Upload README.md
Browse files
README.md
CHANGED
|
@@ -1 +1,41 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Soccer Feature Engineering Hackathon — 33 Match-Level Features
|
| 2 |
+
|
| 3 |
+
This repository contains a complete, reproducible feature engineering pipeline for the **Kaggle Soccer Feature Engineering Hackathon**, built from SkillCorner Open Data.
|
| 4 |
+
|
| 5 |
+
## Output
|
| 6 |
+
|
| 7 |
+
- **`features.csv`** — 18 rows (9 matches × 2 teams), 35 columns:
|
| 8 |
+
- `match_id`, `team_id`
|
| 9 |
+
- **33 engineered features** across 5 behavioral dimensions
|
| 10 |
+
|
| 11 |
+
All values are raw aggregated counts or cumulative distances — no percentages, no ratios.
|
| 12 |
+
|
| 13 |
+
## Feature Architecture
|
| 14 |
+
|
| 15 |
+
| Dimension | Features | Description |
|
| 16 |
+
|-----------|----------|-------------|
|
| 17 |
+
| **Attacking Structure** | `att1`–`att5` | Passes/carries into final third, opponents bypassed, last-line breaks, advanced possession |
|
| 18 |
+
| **Build-Up Profile** | `att6`–`att10` | Phase-type volume vector (build_up, direct, set_play, quick_break, transition) |
|
| 19 |
+
| **Possession Quality** | `att11`–`att20` | Tempo, threat creation, defensive-line displacement (metres), passing options |
|
| 20 |
+
| **Pressing & Defensive Shape** | `def1`–`def7` | Pressing volume, counter-press, recovery press, chain architecture, danger stopped |
|
| 21 |
+
| **Off-Ball Movement Intelligence** | `run1`–`run5` + `att_give_and_go_initiated` | Line-breaking, line-pushing, behind, overlap, attacking-third runs, give-and-go |
|
| 22 |
+
|
| 23 |
+
## How to Run
|
| 24 |
+
|
| 25 |
+
```bash
|
| 26 |
+
git clone https://github.com/SkillCorner/opendata.git
|
| 27 |
+
pip install pandas numpy
|
| 28 |
+
python soccer_feature_engineering.py
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
The script dynamically discovers all `*_dynamic_events.csv` files via `glob` — no hardcoded match IDs required.
|
| 32 |
+
|
| 33 |
+
## Data Source
|
| 34 |
+
|
| 35 |
+
[SkillCorner Open Data](https://github.com/SkillCorner/opendata) — 9 matches of Australian A-League 2024/2025, MIT License.
|
| 36 |
+
|
| 37 |
+
## Requirements
|
| 38 |
+
|
| 39 |
+
- Python 3.8+
|
| 40 |
+
- pandas
|
| 41 |
+
- numpy
|