Datasets:
canonical_player_id stringlengths 32 32 | match_id stringlengths 4 7 | competition_id int32 0 1.47k | season_id int32 0 315 | position_group stringclasses 4
values | actions listlengths 1 634 |
|---|---|---|---|---|---|
348eb705928cdea7b9ca21bcf2bcced1 | 3901197 | 7 | 27 | Defender | [
{
"action_type": 21,
"x": 0.5054166913032532,
"y": 0.10437499731779099,
"result": 1
},
{
"action_type": 0,
"x": 0.5104166865348816,
"y": 0.10437499731779099,
"result": 1
},
{
"action_type": 21,
"x": 0.518750011920929,
"y": 0.08687499910593033,
"result": 1
},... |
54533f13d00efc77d02ef23d8f386908 | 3900540 | 7 | 27 | Defender | [
{
"action_type": 21,
"x": 0.9179166555404663,
"y": 0.2631250023841858,
"result": 1
},
{
"action_type": 0,
"x": 0.8829166889190674,
"y": 0.2893750071525574,
"result": 1
},
{
"action_type": 21,
"x": 0.6054166555404663,
"y": 0.4268749952316284,
"result": 1
},
... |
aac76af15fb9cfcdee191e89c3d05307 | 3890429 | 9 | 27 | Defender | [
{
"action_type": 21,
"x": 0.46958333253860474,
"y": 0.46562498807907104,
"result": 1
},
{
"action_type": 0,
"x": 0.4129166603088379,
"y": 0.5556250214576721,
"result": 1
},
{
"action_type": 21,
"x": 0.9129166603088379,
"y": 0.018124999478459358,
"result": 1
... |
0e9e535b6fba3a3441816bf7e3235379 | 3890511 | 9 | 27 | Defender | [
{
"action_type": 0,
"x": 0.7262499928474426,
"y": 0.7206249833106995,
"result": 1
},
{
"action_type": 2,
"x": 0.34291666746139526,
"y": 0.9993749856948853,
"result": 1
},
{
"action_type": 21,
"x": 0.3345833420753479,
"y": 0.9668750166893005,
"result": 1
},
... |
7c18686fb57d186a4fdcc43ac25449bc | 3920407 | 1,267 | 107 | Defender | [
{
"action_type": 21,
"x": 0.30291667580604553,
"y": 0.9856250286102295,
"result": 1
},
{
"action_type": 0,
"x": 0.30291667580604553,
"y": 0.9856250286102295,
"result": 1
},
{
"action_type": 21,
"x": 0.07041666656732559,
"y": 0.9256250262260437,
"result": 1
}... |
5862c4650327d55dd3ff7c304b1d65d3 | 3900514 | 7 | 27 | null | [
{
"action_type": 21,
"x": 0.6737499833106995,
"y": 0.8618749976158142,
"result": 1
},
{
"action_type": 19,
"x": 0.6754166483879089,
"y": 0.8731250166893005,
"result": 0
},
{
"action_type": 0,
"x": 0.6737499833106995,
"y": 0.8731250166893005,
"result": 1
},
... |
c34e2775ba053f7f5300f6209527a278 | 3890403 | 9 | 27 | Defender | [
{
"action_type": 21,
"x": 0.7670833468437195,
"y": 0.7206249833106995,
"result": 1
},
{
"action_type": 0,
"x": 0.7670833468437195,
"y": 0.6918749809265137,
"result": 1
},
{
"action_type": 21,
"x": 0.8737499713897705,
"y": 0.7593749761581421,
"result": 1
},
... |
d3d04511728a420513147393c3d3ce64 | 3895067 | 9 | 281 | Defender | [
{
"action_type": 0,
"x": 0.7562500238418579,
"y": 0.2331250011920929,
"result": 0
},
{
"action_type": 0,
"x": 0.49958333373069763,
"y": 0.3318749964237213,
"result": 1
},
{
"action_type": 2,
"x": 0.3995833396911621,
"y": 0.0006249999860301614,
"result": 1
},... |
14b17bf4bbb81ddc44a199818c846bb9 | 3920397 | 1,267 | 107 | null | [
{
"action_type": 21,
"x": 0.9287499785423279,
"y": 0.25687500834465027,
"result": 1
},
{
"action_type": 0,
"x": 0.9287499785423279,
"y": 0.25687500834465027,
"result": 0
},
{
"action_type": 21,
"x": 0.4704166650772095,
"y": 0.37062498927116394,
"result": 1
}... |
f9a808859b2226bbb70268f9c36cd6d0 | 3998850 | 53 | 315 | Forward | [
{
"action_type": 21,
"x": 0.5270833373069763,
"y": 0.24687500298023224,
"result": 1
},
{
"action_type": 0,
"x": 0.44874998927116394,
"y": 0.4268749952316284,
"result": 1
},
{
"action_type": 21,
"x": 0.8187500238418579,
"y": 0.04062499850988388,
"result": 1
}... |
157a9972cfc9b875e9e4e4bb8b8bf343 | 3890416 | 9 | 27 | null | [
{
"action_type": 21,
"x": 0.10041666775941849,
"y": 0.11187499761581421,
"result": 1
},
{
"action_type": 0,
"x": 0.08291666954755783,
"y": 0.10687500238418579,
"result": 1
},
{
"action_type": 21,
"x": 0.2162500023841858,
"y": 0.3318749964237213,
"result": 1
... |
b58a3fb99e38568d7be56d2f66482f2e | 3900559 | 7 | 27 | Forward | [
{
"action_type": 21,
"x": 0.7912499904632568,
"y": 0.6993749737739563,
"result": 1
},
{
"action_type": 0,
"x": 0.7754166722297668,
"y": 0.6481249928474426,
"result": 1
},
{
"action_type": 21,
"x": 0.09958333522081375,
"y": 0.6106250286102295,
"result": 1
},
... |
5fb1055429131a45e34774a5e9da1fc5 | 3998855 | 53 | 315 | Midfielder | [
{
"action_type": 21,
"x": 0.03958333283662796,
"y": 0.09562499821186066,
"result": 1
},
{
"action_type": 21,
"x": 0.34458333253860474,
"y": 0.9731249809265137,
"result": 1
},
{
"action_type": 0,
"x": 0.35374999046325684,
"y": 0.9456250071525574,
"result": 0
... |
7a0ca732928a35ee433855da29ce01c8 | 3895258 | 9 | 281 | Forward | [
{
"action_type": 21,
"x": 0.5170833468437195,
"y": 0.22562499344348907,
"result": 1
},
{
"action_type": 0,
"x": 0.5229166746139526,
"y": 0.3293749988079071,
"result": 1
},
{
"action_type": 21,
"x": 0.2529166638851166,
"y": 0.4293749928474426,
"result": 1
},
... |
8fbcb6e2d7e51cf7472112270709794e | 3900588 | 7 | 27 | Forward | [
{
"action_type": 8,
"x": 0.3154166638851166,
"y": 0.8218749761581421,
"result": 0
},
{
"action_type": 21,
"x": 0.6295833587646484,
"y": 0.815625011920929,
"result": 1
},
{
"action_type": 0,
"x": 0.5454166531562805,
"y": 0.8543750047683716,
"result": 1
},
{... |
618d4bd0b2fd5ef98cbbda687ecb3d19 | 3900622 | 7 | 27 | Defender | [
{
"action_type": 0,
"x": 0.4137499928474426,
"y": 0.6168749928474426,
"result": 0
},
{
"action_type": 0,
"x": 0.40041667222976685,
"y": 0.8818749785423279,
"result": 1
},
{
"action_type": 21,
"x": 0.3529166579246521,
"y": 0.9193750023841858,
"result": 1
},
... |
dfdf493976182ef2bf644c767bf70d87 | 3901181 | 7 | 27 | Goalkeeper | [
{
"action_type": 0,
"x": 0.8429166674613953,
"y": 0.5118749737739563,
"result": 1
},
{
"action_type": 21,
"x": 0.8812500238418579,
"y": 0.4468750059604645,
"result": 1
},
{
"action_type": 0,
"x": 0.872083306312561,
"y": 0.46562498807907104,
"result": 1
},
... |
59ad094a9d814164d154c51f5ade934f | 3901185 | 7 | 27 | Defender | [
{
"action_type": 3,
"x": 0.5770833492279053,
"y": 0.09062500298023224,
"result": 1
},
{
"action_type": 2,
"x": 0.2704166769981384,
"y": 0.0006249999860301614,
"result": 1
},
{
"action_type": 0,
"x": 0.36375001072883606,
"y": 0.08687499910593033,
"result": 1
... |
327e10fb765091b6d7c272f13551bc54 | 3890439 | 9 | 27 | null | [
{
"action_type": 21,
"x": 0.7604166865348816,
"y": 0.8293750286102295,
"result": 1
},
{
"action_type": 19,
"x": 0.7729166746139526,
"y": 0.9331250190734863,
"result": 0
},
{
"action_type": 21,
"x": 0.4879166781902313,
"y": 0.5368750095367432,
"result": 1
},
... |
4dc564d8cde29bd4f6de78dc4d29777e | 3900620 | 7 | 27 | Defender | [
{
"action_type": 21,
"x": 0.7237499952316284,
"y": 0.8868749737739563,
"result": 1
},
{
"action_type": 0,
"x": 0.7237499952316284,
"y": 0.8868749737739563,
"result": 1
},
{
"action_type": 21,
"x": 0.4104166626930237,
"y": 0.8418750166893005,
"result": 1
},
... |
c23e3172e6bbdc6ac5e2af977f946349 | 3890561 | 9 | 27 | null | [
{
"action_type": 21,
"x": 0.5012500286102295,
"y": 0.5268750190734863,
"result": 1
},
{
"action_type": 0,
"x": 0.4945833384990692,
"y": 0.5218750238418579,
"result": 1
},
{
"action_type": 21,
"x": 0.597083330154419,
"y": 0.9181249737739563,
"result": 1
},
... |
29ded0cfb77efc6065a1ec128defc0e1 | 3900551 | 7 | 27 | Defender | [
{
"action_type": 21,
"x": 0.4204166531562805,
"y": 0.2681249976158142,
"result": 1
},
{
"action_type": 0,
"x": 0.4204166531562805,
"y": 0.34187498688697815,
"result": 1
},
{
"action_type": 21,
"x": 0.1770833283662796,
"y": 0.27437499165534973,
"result": 1
},... |
89c8edd06bd1bc1810cfffa4d83a0d09 | 3920404 | 1,267 | 107 | Defender | [
{
"action_type": 0,
"x": 0.5954166650772095,
"y": 0.9568750262260437,
"result": 0
},
{
"action_type": 21,
"x": 0.6495833396911621,
"y": 0.9306250214576721,
"result": 1
},
{
"action_type": 2,
"x": 0.6545833349227905,
"y": 0.9993749856948853,
"result": 1
},
... |
091e7a948cb332cecd9a8abdd34908fb | 3920394 | 1,267 | 107 | Midfielder | [
{
"action_type": 21,
"x": 0.7487499713897705,
"y": 0.3656249940395355,
"result": 1
},
{
"action_type": 0,
"x": 0.6979166865348816,
"y": 0.41312500834465027,
"result": 1
},
{
"action_type": 4,
"x": 0.6512500047683716,
"y": 0.5618749856948853,
"result": 1
},
... |
d5d6b33e86adb1712470e697b217fcb6 | 3920408 | 1,267 | 107 | Defender | [
{
"action_type": 21,
"x": 0.2854166626930237,
"y": 0.6056249737739563,
"result": 1
},
{
"action_type": 0,
"x": 0.27291667461395264,
"y": 0.6006249785423279,
"result": 0
},
{
"action_type": 0,
"x": 0.47458332777023315,
"y": 0.34437501430511475,
"result": 0
},... |
1bee35fbec8dcbaa8ab0fc5b14f05442 | 3893795 | 72 | 107 | Forward | [
{
"action_type": 21,
"x": 0.10125000029802322,
"y": 0.7881249785423279,
"result": 1
},
{
"action_type": 0,
"x": 0.0754166692495346,
"y": 0.7831249833106995,
"result": 1
},
{
"action_type": 21,
"x": 0.5062500238418579,
"y": 0.9118750095367432,
"result": 1
},
... |
bf2753ab0b03c69f9495079f683f1f86 | 3890448 | 9 | 27 | null | [
{
"action_type": 21,
"x": 0.643750011920929,
"y": 0.3981249928474426,
"result": 1
},
{
"action_type": 7,
"x": 0.6637499928474426,
"y": 0.390625,
"result": 0
},
{
"action_type": 21,
"x": 0.43291667103767395,
"y": 0.9293749928474426,
"result": 1
},
{
"ac... |
c16e0b0ef0de8456bf3f3a465dc4ef94 | 3890494 | 9 | 27 | null | [
{
"action_type": 21,
"x": 0.7837499976158142,
"y": 0.08812499791383743,
"result": 1
},
{
"action_type": 0,
"x": 0.793749988079071,
"y": 0.12062499672174454,
"result": 1
},
{
"action_type": 21,
"x": 0.9079166650772095,
"y": 0.07562500238418579,
"result": 1
},... |
d7e5b9d2f33e2af68c858e6a04d1c16f | 3920402 | 1,267 | 107 | null | [
{
"action_type": 21,
"x": 0.6587499976158142,
"y": 0.6756250262260437,
"result": 1
},
{
"action_type": 0,
"x": 0.6445833444595337,
"y": 0.6806250214576721,
"result": 1
},
{
"action_type": 21,
"x": 0.622083306312561,
"y": 0.8793749809265137,
"result": 1
},
... |
4148a4656176b4d7acc9e4e7adfc1cef | 3893809 | 72 | 107 | Forward | [
{
"action_type": 21,
"x": 0.3779166638851166,
"y": 0.9456250071525574,
"result": 1
},
{
"action_type": 0,
"x": 0.22208333015441895,
"y": 0.8793749809265137,
"result": 0
},
{
"action_type": 21,
"x": 0.11791666597127914,
"y": 0.9268749952316284,
"result": 1
},... |
067524904b535fdcf2ca7ad63ee7ded3 | 3893809 | 72 | 107 | null | [
{
"action_type": 0,
"x": 0.4079166650772095,
"y": 0.2931250035762787,
"result": 1
},
{
"action_type": 11,
"x": 0.026249999180436134,
"y": 0.6543750166893005,
"result": 1
},
{
"action_type": 21,
"x": 0.8304166793823242,
"y": 0.47187501192092896,
"result": 1
}... |
689d80a732187248e428f9845c5ba7c9 | 3901736 | 72 | 107 | Midfielder | [
{
"action_type": 0,
"x": 0.40958333015441895,
"y": 0.3331249952316284,
"result": 0
},
{
"action_type": 21,
"x": 0.5537499785423279,
"y": 0.7018749713897705,
"result": 1
},
{
"action_type": 0,
"x": 0.565416693687439,
"y": 0.7243750095367432,
"result": 0
},
... |
a45b7c3b925a922b5171bfae8fc8a87d | 3901179 | 7 | 27 | Defender | [
{
"action_type": 21,
"x": 0.44874998927116394,
"y": 0.06312499940395355,
"result": 1
},
{
"action_type": 0,
"x": 0.4437499940395355,
"y": 0.05312500149011612,
"result": 1
},
{
"action_type": 21,
"x": 0.5362499952316284,
"y": 0.14812499284744263,
"result": 1
... |
95f7fd300604b121da6a5adc643b3eda | 3900570 | 7 | 27 | Midfielder | [
{
"action_type": 0,
"x": 0.5220833420753479,
"y": 0.4543749988079071,
"result": 1
},
{
"action_type": 0,
"x": 0.6554166674613953,
"y": 0.47187501192092896,
"result": 1
},
{
"action_type": 0,
"x": 0.6712499856948853,
"y": 0.5718749761581421,
"result": 1
},
... |
b0abb441982e91762fbc63affe9a90f9 | 3939982 | 223 | 282 | Goalkeeper | [
{
"action_type": 22,
"x": 0.9504166841506958,
"y": 0.47187501192092896,
"result": 0
},
{
"action_type": 22,
"x": 0.9504166841506958,
"y": 0.4806250035762787,
"result": 1
},
{
"action_type": 21,
"x": 0.9295833110809326,
"y": 0.5818750262260437,
"result": 1
},... |
0e9ba8f93cf2ff87a510990b035a1ae6 | 3901241 | 7 | 27 | Midfielder | [
{
"action_type": 0,
"x": 0.5079166889190674,
"y": 0.49937498569488525,
"result": 1
},
{
"action_type": 11,
"x": 0.8512499928474426,
"y": 0.5206249952316284,
"result": 0
},
{
"action_type": 0,
"x": 0.44708332419395447,
"y": 0.7368749976158142,
"result": 0
},
... |
Football2Vec Training Data — SPADL Action Sequences
Tokenized SPADL action sequences for training the Football2Vec v2 transformer encoder. One row per player-match, covering ~87,000 sequences across ~3,000 professional soccer matches from StatsBomb Open Data and Wyscout.
Part of the (Right! Luxury!) Lakehouse soccer analytics platform.
Quick Start
from datasets import load_dataset
ds = load_dataset("luxury-lakehouse/football2vec-training-data")
df = ds["train"].to_pandas()
print(f"{len(df)} player-match sequences")
# Inspect one sequence
row = df.iloc[0]
print(f"Player: {row['canonical_player_id']}, Match: {row['match_id']}")
print(f"Actions: {len(row['actions'])} events")
print(f"First action: {row['actions'][0]}") # {'action_type': 0, 'x': 0.52, 'y': 0.34, 'result': 1}
Explore interactively: Soccer Analytics App
What Is This Dataset?
Each row represents one player's actions in one match, serialized as a struct array of SPADL-tokenized events. The 23-type SPADL vocabulary provides a unified action taxonomy across StatsBomb and Wyscout data sources. Continuous spatial coordinates (x, y) are normalized to [0, 1] on a 105×68m pitch.
This dataset is the training corpus for Football2Vec v2. It is exported from the platform's fct_action_values Delta table via the export_embeddings_training_data entry point and published here for reproducibility.
Data Fields
| Column | Type | Description |
|---|---|---|
canonical_player_id |
string |
Unified player identifier (from entity resolution across data sources) |
match_id |
string |
Match identifier |
competition_id |
int |
Competition identifier (used as adversarial target in Stage 2 training) |
season_id |
int |
Season identifier |
position_group |
string (nullable) |
Player position group: GK, Def, Mid, Fwd (from dim_players) |
actions |
array<struct> |
Ordered sequence of tokenized SPADL actions |
Action Struct Schema
Each element in the actions array:
| Field | Type | Description |
|---|---|---|
action_type |
int |
SPADL action type ID (0–22, 23 action types) |
x |
float |
Normalized x coordinate [0, 1] on 105m pitch |
y |
float |
Normalized y coordinate [0, 1] on 68m pitch |
result |
int |
Binary outcome: 1 = success, 0 = failure |
SPADL Action Vocabulary (23 types)
| ID | Action | ID | Action | ID | Action |
|---|---|---|---|---|---|
| 0 | pass | 8 | foul | 16 | keeper_punch |
| 1 | cross | 9 | tackle | 17 | keeper_pick_up |
| 2 | throw_in | 10 | interception | 18 | clearance |
| 3 | freekick_crossed | 11 | shot | 19 | bad_touch |
| 4 | freekick_short | 12 | shot_penalty | 20 | non_action |
| 5 | corner_crossed | 13 | shot_freekick | 21 | dribble |
| 6 | corner_short | 14 | keeper_save | 22 | goalkick |
| 7 | take_on | 15 | keeper_claim |
Schema Migration — Dual-Column Window (2026-04-25 → 2026-07-22)
PR 5b of the lakehouse Kimball migration (ADR-011) adds the BIGINT surrogate player_key to the upstream fct_player_embeddings* marts. The training-data export script (src/ingestion/export_embeddings_training_data.py) continues to read canonical_player_id only — this dataset's payload is unchanged in PR 5b. PR 8 (planned 2026-07-22) will add player_key to the payload in a backwards-compatible way and announce a sunset for canonical_player_id.
Recommended consumer behaviour during this window:
- No change required. Continue to read
canonical_player_idfrom this dataset. - If you maintain your own join to a
dim_playersclone, you may pre-computeplayer_key = xxhash64(provider || '|' || cast(player_id as string))to align with the lakehouse Kimball convention ahead of the payload change. - After 2026-07-22 the dataset will carry both columns for at least one HF dataset version, then
canonical_player_idwill be deprecated. Migrate at your convenience inside that window.
If you depend on this dataset and need extra notice before the column drop, open an issue on the lakehouse repo.
Data Sources
| Source | Matches | License |
|---|---|---|
| StatsBomb Open Data | ~3,000 | CC-BY 4.0 |
| Wyscout Public Dataset | ~1,900 | CC-BY-NC 4.0 |
Coverage includes the Premier League, La Liga, Serie A, Bundesliga, Ligue 1, Champions League, World Cup, and more.
Freshness
| Metric | Value |
|---|---|
| Freshness SLA | 168 hours (7 days) |
| Refresh trigger | Re-exported when upstream fct_action_values is updated with new match data |
| Publish script | src/ingestion/export_embeddings_training_data.py (entry point: export_embeddings_training_data) |
Use Cases
- Transformer training: Primary training corpus for Football2Vec v2 (masked language modeling + adversarial debiasing)
- Custom embedding models: Train your own player embedding model on standardized SPADL sequences
- Sequence analysis: Study per-player action patterns, spatial tendencies, and decision sequences
- Vocabulary research: Compare action distributions across competitions, positions, or eras
Limitations
- Event-based only: Contains on-ball action sequences. Off-ball movement, pressing, and positioning are not represented.
- Open data only: Derived from publicly available StatsBomb and Wyscout data. Coverage is uneven across leagues and seasons.
- Coordinate normalization: All coordinates are normalized to [0, 1] on a 105×68m pitch (SPADL standard). Original provider-specific coordinate systems are not preserved.
- NULL position_group: Players not matched via entity resolution or lacking position metadata have
position_group = NULL.
Citation
If you use this dataset, please cite the SPADL framework and the Football2Vec v2 model:
@inproceedings{decroos2019actions,
title={Actions Speak Louder than Goals: Valuing Player Actions in Soccer},
author={Decroos, Tom and Bransen, Lotte and Van Haaren, Jan and Davis, Jesse},
booktitle={Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining},
pages={1851--1861},
year={2019},
publisher={ACM}
}
@software{nielsen2026football2vec_v2,
title={Football2Vec v2: Transformer Player Embeddings with Adversarial Team Debiasing},
author={Nielsen, Karsten Skyt},
year={2026},
url={https://github.com/karsten-s-nielsen/luxury-lakehouse}
}
Companion Resources
| Resource | Description |
|---|---|
| Football2Vec v2 Model | 192-dim transformer encoder trained on this data |
| Football2Vec v1 Model | 32-dim Doc2Vec baseline |
| Player Embeddings | Pre-computed vectors (career/season/match) |
| SPADL/VAEP Action Values | Per-action offensive/defensive VAEP valuations |
More Information
Explore interactively: Soccer Analytics App
- Model repo:
luxury-lakehouse/football2vec-v2 - License: CC-BY-NC 4.0 (inherited from Wyscout data)
PR 7 changelog (2026-04-27)
PR 5b (2026-04-25) added player_key to the upstream training data lineage. The HF dataset payload republish was deferred at PR 5b and is absorbed into PR 7's scope. Payload now carries player_key (BIGINT) alongside the legacy player_id and canonical_player_id columns during the 2026-07-22 dual-column window. PR 8 will sunset the legacy ID columns post-2026-07-22.
- Downloads last month
- 363