Datasets:
Update README.md (generated from football2vec-player-embeddings.md)
Browse files
README.md
CHANGED
|
@@ -22,7 +22,7 @@ configs:
|
|
| 22 |
|
| 23 |
# football2vec Player Embeddings
|
| 24 |
|
| 25 |
-
Pre-computed player embedding vectors from the [football2vec v2](https://huggingface.co/luxury-lakehouse/football2vec-v2) transformer model — ready to use without loading model weights. Covers **~87,000** per-match vectors, **~8,950** career vectors, and season-level aggregates across professional soccer competitions. V2 uses a
|
| 26 |
|
| 27 |
Part of the (Right! Luxury!) Lakehouse soccer analytics platform.
|
| 28 |
|
|
@@ -40,13 +40,13 @@ vectors = np.array(df["behavioral_vector"].tolist())
|
|
| 40 |
print(f"{vectors.shape[0]} players, {vectors.shape[1]}-dim embeddings")
|
| 41 |
```
|
| 42 |
|
| 43 |
-
> **Explore interactively:** [
|
| 44 |
|
| 45 |
## What Are These Embeddings?
|
| 46 |
|
| 47 |
Each embedding is composed of two complementary vectors trained or derived from open event data:
|
| 48 |
|
| 49 |
-
- **Behavioral vector** (
|
| 50 |
- **Statistical vector** (13-dimensional, may be NULL): Per-90 statistics z-score normalized **within position group** (GK, Def, Mid, Fwd). This position-aware normalization prevents goalkeeper contamination in similarity search and provides fairer cross-position comparisons.
|
| 51 |
|
| 52 |
For model architecture details, training methodology, and the full vocabulary, see the companion model repositories: [`luxury-lakehouse/football2vec-v2`](https://huggingface.co/luxury-lakehouse/football2vec-v2) (v2 transformer) and [`luxury-lakehouse/football2vec-statsbomb-wyscout`](https://huggingface.co/luxury-lakehouse/football2vec-statsbomb-wyscout) (v1 Doc2Vec baseline).
|
|
@@ -72,7 +72,7 @@ One row per player per match. The most granular config; suitable for match-level
|
|
| 72 |
| Column | Type | Description |
|
| 73 |
|--------|------|-------------|
|
| 74 |
| `canonical_player_id` | `string` | Unified player identifier (see [dim_players](https://huggingface.co/datasets/luxury-lakehouse/football2vec-player-embeddings)) |
|
| 75 |
-
| `behavioral_vector` | `array<double>` |
|
| 76 |
| `stat_vector` | `array<double>` | 13-dim z-score normalized per-90 stats (may be NULL) |
|
| 77 |
| `total_matches` | `bigint` | Number of matches contributing to this career embedding |
|
| 78 |
| `data_sources` | `array<string>` | Data providers contributing (e.g., `["statsbomb", "wyscout"]`) |
|
|
@@ -85,7 +85,7 @@ One row per player per match. The most granular config; suitable for match-level
|
|
| 85 |
| `canonical_player_id` | `string` | Unified player identifier |
|
| 86 |
| `competition_id` | `int` | Competition identifier |
|
| 87 |
| `season_id` | `int` | Season identifier |
|
| 88 |
-
| `behavioral_vector` | `array<double>` |
|
| 89 |
| `stat_vector` | `array<double>` | 13-dim stat vector (may be NULL) |
|
| 90 |
| `matches_in_sample` | `bigint` | Number of matches contributing in this competition-season |
|
| 91 |
| `data_sources` | `array<string>` | Data providers contributing |
|
|
@@ -98,7 +98,7 @@ One row per player per match. The most granular config; suitable for match-level
|
|
| 98 |
| `canonical_player_id` | `string` | Unified player identifier |
|
| 99 |
| `match_id` | `string` | Match identifier |
|
| 100 |
| `data_source` | `string` | Data provider (`statsbomb` or `wyscout`) |
|
| 101 |
-
| `behavioral_vector` | `array<double>` |
|
| 102 |
| `stat_vector` | `array<double>` | 13-dim stat vector (may be NULL) |
|
| 103 |
|
| 104 |
## Schema Migration — Dual-Column Window (2026-04-25 → 2026-07-22)
|
|
@@ -162,7 +162,7 @@ And the underlying SPADL/VAEP framework:
|
|
| 162 |
|
| 163 |
## More Information
|
| 164 |
|
| 165 |
-
> **Explore interactively:** [
|
| 166 |
|
| 167 |
- **Model repo**: [`luxury-lakehouse/football2vec-statsbomb-wyscout`](https://huggingface.co/luxury-lakehouse/football2vec-statsbomb-wyscout)
|
| 168 |
- **License**: [MIT](https://opensource.org/licenses/MIT)
|
|
|
|
| 22 |
|
| 23 |
# football2vec Player Embeddings
|
| 24 |
|
| 25 |
+
Pre-computed player embedding vectors from the [football2vec v2](https://huggingface.co/luxury-lakehouse/football2vec-v2) transformer model — ready to use without loading model weights. Covers **~87,000** per-match vectors, **~8,950** career vectors, and season-level aggregates across professional soccer competitions. V2 uses a 192-dim transformer encoder with adversarial team debiasing (Ganin GRL) to prevent team identity from confounding player style representations.
|
| 26 |
|
| 27 |
Part of the (Right! Luxury!) Lakehouse soccer analytics platform.
|
| 28 |
|
|
|
|
| 40 |
print(f"{vectors.shape[0]} players, {vectors.shape[1]}-dim embeddings")
|
| 41 |
```
|
| 42 |
|
| 43 |
+
> **Explore interactively:** [Soccer Analytics App](https://huggingface.co/spaces/luxury-lakehouse/soccer-analytics-app)
|
| 44 |
|
| 45 |
## What Are These Embeddings?
|
| 46 |
|
| 47 |
Each embedding is composed of two complementary vectors trained or derived from open event data:
|
| 48 |
|
| 49 |
+
- **Behavioral vector** (192-dimensional): A transformer encoder embedding with adversarial team debiasing (Ganin GRL). Trained on tokenized SPADL action streams (23-type vocabulary), it captures *how* a player plays — their movement patterns, decision sequences, and positional tendencies — while removing team-specific confounds. V1 (32-dim Doc2Vec) is retained as a baseline.
|
| 50 |
- **Statistical vector** (13-dimensional, may be NULL): Per-90 statistics z-score normalized **within position group** (GK, Def, Mid, Fwd). This position-aware normalization prevents goalkeeper contamination in similarity search and provides fairer cross-position comparisons.
|
| 51 |
|
| 52 |
For model architecture details, training methodology, and the full vocabulary, see the companion model repositories: [`luxury-lakehouse/football2vec-v2`](https://huggingface.co/luxury-lakehouse/football2vec-v2) (v2 transformer) and [`luxury-lakehouse/football2vec-statsbomb-wyscout`](https://huggingface.co/luxury-lakehouse/football2vec-statsbomb-wyscout) (v1 Doc2Vec baseline).
|
|
|
|
| 72 |
| Column | Type | Description |
|
| 73 |
|--------|------|-------------|
|
| 74 |
| `canonical_player_id` | `string` | Unified player identifier (see [dim_players](https://huggingface.co/datasets/luxury-lakehouse/football2vec-player-embeddings)) |
|
| 75 |
+
| `behavioral_vector` | `array<double>` | 192-dim embedding (element-wise mean across career) |
|
| 76 |
| `stat_vector` | `array<double>` | 13-dim z-score normalized per-90 stats (may be NULL) |
|
| 77 |
| `total_matches` | `bigint` | Number of matches contributing to this career embedding |
|
| 78 |
| `data_sources` | `array<string>` | Data providers contributing (e.g., `["statsbomb", "wyscout"]`) |
|
|
|
|
| 85 |
| `canonical_player_id` | `string` | Unified player identifier |
|
| 86 |
| `competition_id` | `int` | Competition identifier |
|
| 87 |
| `season_id` | `int` | Season identifier |
|
| 88 |
+
| `behavioral_vector` | `array<double>` | 192-dim embedding (season-level mean across matches) |
|
| 89 |
| `stat_vector` | `array<double>` | 13-dim stat vector (may be NULL) |
|
| 90 |
| `matches_in_sample` | `bigint` | Number of matches contributing in this competition-season |
|
| 91 |
| `data_sources` | `array<string>` | Data providers contributing |
|
|
|
|
| 98 |
| `canonical_player_id` | `string` | Unified player identifier |
|
| 99 |
| `match_id` | `string` | Match identifier |
|
| 100 |
| `data_source` | `string` | Data provider (`statsbomb` or `wyscout`) |
|
| 101 |
+
| `behavioral_vector` | `array<double>` | 192-dim embedding for this player-match |
|
| 102 |
| `stat_vector` | `array<double>` | 13-dim stat vector (may be NULL) |
|
| 103 |
|
| 104 |
## Schema Migration — Dual-Column Window (2026-04-25 → 2026-07-22)
|
|
|
|
| 162 |
|
| 163 |
## More Information
|
| 164 |
|
| 165 |
+
> **Explore interactively:** [Soccer Analytics App](https://huggingface.co/spaces/luxury-lakehouse/soccer-analytics-app)
|
| 166 |
|
| 167 |
- **Model repo**: [`luxury-lakehouse/football2vec-statsbomb-wyscout`](https://huggingface.co/luxury-lakehouse/football2vec-statsbomb-wyscout)
|
| 168 |
- **License**: [MIT](https://opensource.org/licenses/MIT)
|