football-docs 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/data/docs.db +0 -0
- package/dist/crawl.js +61 -6
- package/docs/fast-forward/api.md +13 -13
- package/docs/fast-forward/benchmarks.md +1 -1
- package/docs/fast-forward/concepts-coordinate-systems.md +1 -1
- package/docs/fast-forward/concepts-dataset.md +1 -1
- package/docs/fast-forward/concepts-distributed-compute.md +1 -1
- package/docs/fast-forward/concepts-filelike.md +1 -1
- package/docs/fast-forward/concepts-layouts.md +1 -1
- package/docs/fast-forward/concepts-orientations.md +1 -1
- package/docs/fast-forward/concepts-transformations.md +1 -1
- package/docs/fast-forward/getting-started.md +1 -1
- package/docs/fast-forward/index.md +1 -1
- package/docs/fast-forward/providers-cdf.md +1 -1
- package/docs/fast-forward/providers-gradientsports.md +1 -1
- package/docs/fast-forward/providers-hawkeye.md +1 -1
- package/docs/fast-forward/providers-optavision.md +1 -1
- package/docs/fast-forward/providers-respovision.md +1 -1
- package/docs/fast-forward/providers-scisports.md +1 -1
- package/docs/fast-forward/providers-secondspectrum.md +1 -1
- package/docs/fast-forward/providers-signality.md +1 -1
- package/docs/fast-forward/providers-skillcorner.md +1 -1
- package/docs/fast-forward/providers-sportec.md +1 -1
- package/docs/fast-forward/providers-statsperform.md +1 -1
- package/docs/fast-forward/providers-tracab.md +1 -1
- package/docs/fast-forward/providers.md +1 -1
- package/docs/fast-forward/reporting-issues.md +1 -1
- package/docs/floodlight/compendium-0-compendium.md +1 -1
- package/docs/floodlight/compendium-1-data.md +5 -5
- package/docs/floodlight/compendium-2-design.md +1 -1
- package/docs/floodlight/compendium-3-time.md +6 -6
- package/docs/floodlight/compendium-4-space.md +9 -9
- package/docs/floodlight/compendium-5-identifier.md +10 -10
- package/docs/floodlight/core-code.md +13 -15
- package/docs/floodlight/core-core.md +10 -28
- package/docs/floodlight/core-definitions.md +1 -1
- package/docs/floodlight/core-events.md +31 -37
- package/docs/floodlight/core-pitch.md +12 -16
- package/docs/floodlight/core-property.md +19 -25
- package/docs/floodlight/core-teamsheet.md +13 -16
- package/docs/floodlight/core-xy.md +34 -40
- package/docs/floodlight/guides-contrib-manual.md +23 -24
- package/docs/floodlight/guides-getting-started.md +9 -9
- package/docs/floodlight/guides-tutorial-analysis.md +18 -115
- package/docs/floodlight/guides-tutorial-matchsheets.md +13 -242
- package/docs/floodlight/index.md +2 -2
- package/docs/floodlight/io-datasets.md +41 -47
- package/docs/floodlight/io-dfl.md +17 -19
- package/docs/floodlight/io-io.md +35 -83
- package/docs/floodlight/io-kinexon.md +21 -27
- package/docs/floodlight/io-opta.md +9 -9
- package/docs/floodlight/io-secondspectrum.md +13 -15
- package/docs/floodlight/io-skillcorner.md +5 -6
- package/docs/floodlight/io-sportradar.md +5 -5
- package/docs/floodlight/io-statsbomb.md +9 -11
- package/docs/floodlight/io-statsperform.md +37 -43
- package/docs/floodlight/io-tracab.md +13 -14
- package/docs/floodlight/io-utils.md +11 -13
- package/docs/floodlight/metrics-entropy.md +5 -6
- package/docs/floodlight/metrics-metrics.md +1 -1
- package/docs/floodlight/metrics-trajectory-clustering.md +5 -6
- package/docs/floodlight/metrics-zone-aggregation.md +5 -6
- package/docs/floodlight/models-geometry.md +42 -47
- package/docs/floodlight/models-kinematics.md +22 -25
- package/docs/floodlight/models-kinetics.md +21 -22
- package/docs/floodlight/models-models.md +22 -67
- package/docs/floodlight/models-space.md +19 -22
- package/docs/floodlight/transforms-filter.md +21 -26
- package/docs/floodlight/transforms-interpolation.md +13 -16
- package/docs/floodlight/transforms-permutation.md +5 -6
- package/docs/floodlight/transforms-spatial.md +9 -10
- package/docs/floodlight/transforms-temporal.md +5 -6
- package/docs/floodlight/transforms-transforms.md +19 -37
- package/docs/floodlight/utils-types.md +2 -2
- package/docs/floodlight/utils-utils.md +1 -1
- package/docs/floodlight/vis-pitches.md +9 -11
- package/docs/floodlight/vis-positions.md +9 -11
- package/docs/floodlight/vis-vis.md +5 -8
- package/docs/unravelsports/additional-citations.md +1 -1
- package/docs/unravelsports/additional-license.md +1 -1
- package/docs/unravelsports/american-football-dataset.md +18 -20
- package/docs/unravelsports/american-football-graphs.md +17 -21
- package/docs/unravelsports/api-american-football.md +1 -1
- package/docs/unravelsports/api-classifiers.md +34 -42
- package/docs/unravelsports/api-soccer.md +1 -1
- package/docs/unravelsports/api-utils.md +1 -1
- package/docs/unravelsports/generated-unravel-utils-add-dummy-label-column.md +3 -3
- package/docs/unravelsports/generated-unravel-utils-add-graph-id-column.md +3 -3
- package/docs/unravelsports/generated-unravel-utils-dummy-graph-ids.md +4 -4
- package/docs/unravelsports/generated-unravel-utils-dummy-labels.md +4 -4
- package/docs/unravelsports/getting-started-concepts.md +1 -1
- package/docs/unravelsports/getting-started-installation.md +1 -1
- package/docs/unravelsports/getting-started-quickstart.md +1 -1
- package/docs/unravelsports/index.md +1 -1
- package/docs/unravelsports/soccer-dataset.md +39 -44
- package/docs/unravelsports/soccer-graphs.md +35 -42
- package/docs/unravelsports/soccer-models.md +34 -42
- package/docs/unravelsports/tutorials-american-football.md +1 -1
- package/docs/unravelsports/tutorials-formation-detection.md +1 -1
- package/docs/unravelsports/tutorials-pressing-intensity.md +1 -1
- package/docs/unravelsports/tutorials-soccer-gnn.md +1 -1
- package/docs/unravelsports/utils-features.md +8 -9
- package/docs/unravelsports/utils-helpers.md +11 -13
- package/docs/unravelsports/utils-objects.md +4 -5
- package/package.json +15 -9
- package/providers.json +1 -1
package/README.md
CHANGED
|
@@ -113,7 +113,7 @@ Provider filters use the indexed provider keys shown by `list_providers`, but co
|
|
|
113
113
|
| unravelsports | 202 | overview, installation, quickstart, concepts, graph converters, pressing intensity, formation detection, models, utils, american-football |
|
|
114
114
|
| Wyscout | 161 | event-types, data-model, coordinate-system, api-access, api-endpoints, charting-analysis-metrics, glossary, identity-surfaces |
|
|
115
115
|
| kloppy | 126 | data-model, usage, provider-mapping, tracking-rendering, event-derived-metrics |
|
|
116
|
-
| floodlight |
|
|
116
|
+
| floodlight | 144 | core data objects, io parsers (Tracab, DFL, Kinexon, Opta, SkillCorner, StatsBomb, StatsPerform, Second Spectrum), transforms, metrics, models, visualisation, guides |
|
|
117
117
|
| SportMonks | 82 | event-types, data-model, api-access, charting-season-stories, identity-surfaces |
|
|
118
118
|
| databallpy | 63 | data-model, overview, usage |
|
|
119
119
|
| mplsoccer | 64 | overview, pitch-types, visualizations |
|
|
@@ -132,7 +132,7 @@ Provider filters use the indexed provider keys shown by `list_providers`, but co
|
|
|
132
132
|
| Soccerdonna | 3 | identity-surfaces |
|
|
133
133
|
| Transfermarkt | 3 | identity-surfaces |
|
|
134
134
|
|
|
135
|
-
**1,
|
|
135
|
+
**1,808 searchable chunks** across 23 providers and tools.
|
|
136
136
|
|
|
137
137
|
> **Impect** documentation is built solely from the public
|
|
138
138
|
> [ImpectAPI/open-data](https://github.com/ImpectAPI/open-data) repository — a
|
package/data/docs.db
CHANGED
|
Binary file
|
package/dist/crawl.js
CHANGED
|
@@ -62,12 +62,31 @@ turndown.addRule("sphinxPreSpan", {
|
|
|
62
62
|
// becomes `## Orientations[¶](https://.../#orientations "Permanent link")`, and
|
|
63
63
|
// since a chunk is titled by its heading that URL is the first thing an agent
|
|
64
64
|
// reads in a search result. It carries no information the frontmatter lacks.
|
|
65
|
+
// Sphinx and mkdocs append a permalink anchor to every heading and every API
|
|
66
|
+
// definition. Its visible text is junk (a pilcrow, or nothing at all), so it
|
|
67
|
+
// has to go. But on an API definition the href fragment is the only place the
|
|
68
|
+
// fully-qualified name appears: the signature itself renders as `frame`(t),
|
|
69
|
+
// and dropping the anchor took floodlight.core.xy.XY.frame out of the corpus
|
|
70
|
+
// with it - 93 identifiers on floodlight alone. A heading's fragment is a
|
|
71
|
+
// slug (#decoupling-data-and-pitches) and carries nothing, so keep the
|
|
72
|
+
// fragment only when it looks like a dotted identifier.
|
|
73
|
+
const DOTTED_IDENTIFIER = /^[A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)+$/;
|
|
65
74
|
turndown.addRule("headerlink", {
|
|
66
75
|
filter: (node) => node.nodeName === "A" &&
|
|
67
76
|
(node.getAttribute?.("class") ?? "")
|
|
68
77
|
.split(/\s+/)
|
|
69
78
|
.includes("headerlink"),
|
|
70
|
-
replacement: () =>
|
|
79
|
+
replacement: (_content, node) => {
|
|
80
|
+
const href = node.getAttribute?.("href") ?? "";
|
|
81
|
+
const fragment = href.slice(href.indexOf("#") + 1);
|
|
82
|
+
if (!href.includes("#") || !DOTTED_IDENTIFIER.test(fragment))
|
|
83
|
+
return "";
|
|
84
|
+
// A code span, not bare text: the name sits immediately after the
|
|
85
|
+
// signature, and backticks keep it one searchable token. The enum-member
|
|
86
|
+
// check only matches SCREAMING_SNAKE inside backticks, so a dotted
|
|
87
|
+
// lowercase path adds search coverage without inventing a truth-file claim.
|
|
88
|
+
return ` \`${fragment}\``;
|
|
89
|
+
},
|
|
71
90
|
});
|
|
72
91
|
// Turndown has no table rule, so a <table> falls through to block handling and
|
|
73
92
|
// every cell lands on its own line. That is worse than losing the table: a
|
|
@@ -142,6 +161,39 @@ turndown.addRule("gfmTable", {
|
|
|
142
161
|
return `\n\n${[line(header), `|${" --- |".repeat(width)}`, ...rest.map(line)].join("\n")}\n\n`;
|
|
143
162
|
},
|
|
144
163
|
});
|
|
164
|
+
// Definition lists lose their structure the same way tables did. Sphinx writes
|
|
165
|
+
// prose glossaries and "Parameters:"/"Returns:" field lists as <dl>, and with no
|
|
166
|
+
// rule the terms and their descriptions all land as unattached paragraphs -
|
|
167
|
+
// "Unit of measurement" then "What's x and y measured in?", with nothing to say
|
|
168
|
+
// which is the term. Bold marks the term, so the pair survives as a pair.
|
|
169
|
+
//
|
|
170
|
+
// Scoped deliberately: Sphinx also renders API signatures as <dl class="py
|
|
171
|
+
// method">, where the <dt> is the signature itself. Bolding those would fight
|
|
172
|
+
// the code formatting they already carry, so only plain and field-list <dl>s
|
|
173
|
+
// are rewritten.
|
|
174
|
+
const isPlainDefinitionList = (node) => {
|
|
175
|
+
const parent = node.parentNode;
|
|
176
|
+
if (parent?.nodeName !== "DL")
|
|
177
|
+
return false;
|
|
178
|
+
const classes = (parent.getAttribute?.("class") ?? "").split(/\s+/);
|
|
179
|
+
if (classes.includes("py"))
|
|
180
|
+
return false;
|
|
181
|
+
return classes.includes("simple") || classes.includes("field-list");
|
|
182
|
+
};
|
|
183
|
+
turndown.addRule("definitionTerm", {
|
|
184
|
+
filter: (node) => node.nodeName === "DT" && isPlainDefinitionList(node),
|
|
185
|
+
replacement: (content) => {
|
|
186
|
+
const term = content.replace(/\s+/g, " ").trim();
|
|
187
|
+
return term ? `\n\n**${term}**\n\n` : "";
|
|
188
|
+
},
|
|
189
|
+
});
|
|
190
|
+
turndown.addRule("definitionDescription", {
|
|
191
|
+
filter: (node) => node.nodeName === "DD" && isPlainDefinitionList(node),
|
|
192
|
+
replacement: (content) => {
|
|
193
|
+
const body = content.trim();
|
|
194
|
+
return body ? `${body}\n\n` : "";
|
|
195
|
+
},
|
|
196
|
+
});
|
|
145
197
|
// Turndown escapes every underscore in plain text nodes by default (guarding
|
|
146
198
|
// against accidental markdown emphasis), including identifiers that carry no
|
|
147
199
|
// code markup at all — e.g. Sphinx renders parameter/return names in
|
|
@@ -179,13 +231,16 @@ export function htmlToMarkdown(html, url) {
|
|
|
179
231
|
? html
|
|
180
232
|
: html.replace(/(<head[^>]*>)/i, `$1<base href="${url}">`);
|
|
181
233
|
const { document } = parseHTML(htmlWithBase);
|
|
182
|
-
//
|
|
183
|
-
//
|
|
184
|
-
//
|
|
185
|
-
//
|
|
234
|
+
// Readability strips every class it is not told to keep, so any Turndown rule
|
|
235
|
+
// that keys off one has to name it here:
|
|
236
|
+
// pre Sphinx's no-wrap marker for inline literals (sphinxPreSpan)
|
|
237
|
+
// headerlink Sphinx's and mkdocs' permalink anchor (headerlink)
|
|
238
|
+
// simple a plain <dl> glossary (definitionTerm/definitionDescription)
|
|
239
|
+
// field-list a Sphinx "Parameters:"/"Returns:" block, same rules
|
|
240
|
+
// py a Python API signature <dl>, which those rules must skip
|
|
186
241
|
const reader = new Readability(document, {
|
|
187
242
|
charThreshold: 100,
|
|
188
|
-
classesToPreserve: ["pre", "headerlink"],
|
|
243
|
+
classesToPreserve: ["pre", "headerlink", "simple", "field-list", "py"],
|
|
189
244
|
});
|
|
190
245
|
const article = reader.parse();
|
|
191
246
|
if (!article?.content)
|
package/docs/fast-forward/api.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/api/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.139Z
|
|
6
6
|
---
|
|
7
7
|
## TrackingDataset
|
|
8
8
|
|
|
@@ -31,7 +31,7 @@ Examples:
|
|
|
31
31
|
>>> dataset.periods # pl.DataFrame (2+ rows)
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
### tracking `property`
|
|
34
|
+
### tracking `property` `fastforward._dataset.TrackingDataset.tracking`
|
|
35
35
|
|
|
36
36
|
```
|
|
37
37
|
tracking
|
|
@@ -39,7 +39,7 @@ tracking
|
|
|
39
39
|
|
|
40
40
|
Get tracking data as a DataFrame.
|
|
41
41
|
|
|
42
|
-
### metadata `property`
|
|
42
|
+
### metadata `property` `fastforward._dataset.TrackingDataset.metadata`
|
|
43
43
|
|
|
44
44
|
```
|
|
45
45
|
metadata
|
|
@@ -47,7 +47,7 @@ metadata
|
|
|
47
47
|
|
|
48
48
|
Get metadata DataFrame (single row).
|
|
49
49
|
|
|
50
|
-
### teams `property`
|
|
50
|
+
### teams `property` `fastforward._dataset.TrackingDataset.teams`
|
|
51
51
|
|
|
52
52
|
```
|
|
53
53
|
teams
|
|
@@ -55,7 +55,7 @@ teams
|
|
|
55
55
|
|
|
56
56
|
Get teams DataFrame.
|
|
57
57
|
|
|
58
|
-
### players `property`
|
|
58
|
+
### players `property` `fastforward._dataset.TrackingDataset.players`
|
|
59
59
|
|
|
60
60
|
```
|
|
61
61
|
players
|
|
@@ -63,7 +63,7 @@ players
|
|
|
63
63
|
|
|
64
64
|
Get players DataFrame.
|
|
65
65
|
|
|
66
|
-
### periods `property`
|
|
66
|
+
### periods `property` `fastforward._dataset.TrackingDataset.periods`
|
|
67
67
|
|
|
68
68
|
```
|
|
69
69
|
periods
|
|
@@ -71,7 +71,7 @@ periods
|
|
|
71
71
|
|
|
72
72
|
Get periods DataFrame with period_id, start_frame_id, end_frame_id.
|
|
73
73
|
|
|
74
|
-
### engine `property`
|
|
74
|
+
### engine `property` `fastforward._dataset.TrackingDataset.engine`
|
|
75
75
|
|
|
76
76
|
```
|
|
77
77
|
engine
|
|
@@ -79,7 +79,7 @@ engine
|
|
|
79
79
|
|
|
80
80
|
Get the DataFrame engine ('polars', 'pyspark', or 'arrow').
|
|
81
81
|
|
|
82
|
-
### coordinate_system `property`
|
|
82
|
+
### coordinate_system `property` `fastforward._dataset.TrackingDataset.coordinate_system`
|
|
83
83
|
|
|
84
84
|
```
|
|
85
85
|
coordinate_system
|
|
@@ -87,7 +87,7 @@ coordinate_system
|
|
|
87
87
|
|
|
88
88
|
Get the current coordinate system.
|
|
89
89
|
|
|
90
|
-
### orientation `property`
|
|
90
|
+
### orientation `property` `fastforward._dataset.TrackingDataset.orientation`
|
|
91
91
|
|
|
92
92
|
```
|
|
93
93
|
orientation
|
|
@@ -95,7 +95,7 @@ orientation
|
|
|
95
95
|
|
|
96
96
|
Get the current orientation.
|
|
97
97
|
|
|
98
|
-
### pitch_dimensions `property`
|
|
98
|
+
### pitch_dimensions `property` `fastforward._dataset.TrackingDataset.pitch_dimensions`
|
|
99
99
|
|
|
100
100
|
```
|
|
101
101
|
pitch_dimensions
|
|
@@ -103,7 +103,7 @@ pitch_dimensions
|
|
|
103
103
|
|
|
104
104
|
Get current pitch dimensions (length, width) in meters.
|
|
105
105
|
|
|
106
|
-
### to_polars
|
|
106
|
+
### to_polars `fastforward._dataset.TrackingDataset.to_polars`
|
|
107
107
|
|
|
108
108
|
```
|
|
109
109
|
to_polars()
|
|
@@ -113,7 +113,7 @@ Convert all DataFrames to Polars.
|
|
|
113
113
|
|
|
114
114
|
If already using Polars engine, returns self unchanged. Arrow tables are converted zero-copy via `pl.from_arrow` (Arrow C Data Interface capsule). PySpark DataFrames go via pandas (the round trip the JVM side wants).
|
|
115
115
|
|
|
116
|
-
### to_pyspark
|
|
116
|
+
### to_pyspark `fastforward._dataset.TrackingDataset.to_pyspark`
|
|
117
117
|
|
|
118
118
|
```
|
|
119
119
|
to_pyspark(spark=None)
|
|
@@ -123,7 +123,7 @@ Convert all DataFrames to PySpark.
|
|
|
123
123
|
|
|
124
124
|
If already using PySpark engine, returns self unchanged. Arrow tables go straight via `spark.createDataFrame(arrow_table)` (Spark 3.4+). Polars DataFrames convert through the Arrow capsule, skipping pandas.
|
|
125
125
|
|
|
126
|
-
### transform
|
|
126
|
+
### transform `fastforward._dataset.TrackingDataset.transform`
|
|
127
127
|
|
|
128
128
|
```
|
|
129
129
|
transform(to_orientation=None, to_dimensions=None, to_coordinates=None)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/benchmarks/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.139Z
|
|
6
6
|
---
|
|
7
7
|
Performance comparison between **fast-forward** (Rust core) and **kloppy** (pure Python) across all supported providers.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/concepts/coordinate-systems/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.140Z
|
|
6
6
|
---
|
|
7
7
|
fast-forward supports 14 named coordinate systems that map to 6 unique coordinate system definitions. Many providers use the same underlying system (CDF), just with different names.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/concepts/dataset/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.138Z
|
|
6
6
|
---
|
|
7
7
|
The `TrackingDataset` is the central object returned by every provider's `load_tracking()` function. It contains all tracking data and metadata. The underlying type of each table (Polars, PySpark, or pyarrow) is determined by the `engine` kwarg passed to `load_tracking`.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/concepts/filelike/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.140Z
|
|
6
6
|
---
|
|
7
7
|
All `load_tracking()` functions accept `FileLike` parameters for their input files. `FileLike` is a flexible type from [kloppy](https://kloppy.pysport.org/reference/io/#kloppy.io.FileLike) that lets you pass data in several ways:
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/concepts/layouts/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.140Z
|
|
6
6
|
---
|
|
7
7
|
fast-forward supports three DataFrame layouts that determine how tracking data is structured. Choose based on your analysis needs.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/concepts/orientations/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.140Z
|
|
6
6
|
---
|
|
7
7
|
Orientation controls the attacking direction of teams in the coordinate space. In real matches, teams switch sides at halftime. Orientation settings let you normalize this so your analysis doesn't need to handle side-switching manually.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/concepts/transformations/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.141Z
|
|
6
6
|
---
|
|
7
7
|
The `TrackingDataset.transform()` method lets you change the coordinate system, orientation, or pitch dimensions of your tracking data after loading.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.135Z
|
|
6
6
|
---
|
|
7
7
|

|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/cdf/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.141Z
|
|
6
6
|
---
|
|
7
7
|
The **Common Data Format (CDF)** is fast-forward's internal standardized format. Use this provider to load data that is already in CDF format.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/gradientsports/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.141Z
|
|
6
6
|
---
|
|
7
7
|
Load tracking data from **GradientSports (PFF)** format.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/hawkeye/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.141Z
|
|
6
6
|
---
|
|
7
7
|
Load tracking data from **HawkEye** per-minute file format.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/optavision/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.142Z
|
|
6
6
|
---
|
|
7
7
|
Load tracking data from **OptaVision** (StatsPerform's FIFA EPTS format).
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/respovision/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.142Z
|
|
6
6
|
---
|
|
7
7
|
Load tracking data from **Respovision** JSONL format. Unique among providers: metadata is embedded in the tracking file.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/scisports/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.142Z
|
|
6
6
|
---
|
|
7
7
|
Load tracking data from **SciSports EPTS** format (FIFA EPTS XML metadata plus colon-delimited positions text).
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/secondspectrum/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.142Z
|
|
6
6
|
---
|
|
7
7
|
Load tracking data from **SecondSpectrum** JSONL format.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/signality/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.142Z
|
|
6
6
|
---
|
|
7
7
|
Load tracking data from **Signality** per-period JSON format.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/sportec/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.143Z
|
|
6
6
|
---
|
|
7
7
|
Load tracking data from **Sportec** XML format (used in the Bundesliga).
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/statsperform/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.143Z
|
|
6
6
|
---
|
|
7
7
|
Load tracking data from **StatsPerform** (SportVU) format using MA25 tracking data and MA1 metadata.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/providers/tracab/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.143Z
|
|
6
6
|
---
|
|
7
7
|
Load tracking data from **Tracab** format. Supports multiple file format variants.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://fast-forward.readthedocs.io/en/latest/reporting-issues/
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version: 0.2.0
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:09:50.139Z
|
|
6
6
|
---
|
|
7
7
|
Found a bug or have a feature request? We'd love to hear from you.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://floodlight.readthedocs.io/en/latest/compendium/0_compendium.html
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version:
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:08:54.621Z
|
|
6
6
|
---
|
|
7
7
|
[floodlight](https://floodlight.readthedocs.io/en/latest/index.html)
|
|
8
8
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
source_url: https://floodlight.readthedocs.io/en/latest/compendium/1_data.html
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version:
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:08:54.621Z
|
|
6
6
|
---
|
|
7
7
|
The core idea behind this package is to provide streamlined data structures that can hold the various information contained in sports data. This is realized by a set of Python classes, each of which is handling exactly one type of information. But before we dig deeper into implementation details we start with a closer look at what we’re dealing with: the data.
|
|
8
8
|
|
|
9
9
|
We found that sports data from across major providers typically differs drastically in format and shape. In general, there are three main data types that can be identified: tracking or position data, event data, and video. Each of these three data sources has its own history, and their appearances have changed over the years. Let’s have a quick look at each one of them.
|
|
10
10
|
|
|
11
|
-
## Provider Data
|
|
11
|
+
## Provider Data
|
|
12
12
|
|
|
13
13
|
**Event data** has its root in so called hand annotations: back in the days analysts came up with annotation schemes to manually track actions over the course of the game on their notepads. This task is now primarily in the hands of companies that supply sports organizations with packages of entire leagues being annotated - match by match, and still mostly by hand.
|
|
14
14
|
|
|
@@ -20,7 +20,7 @@ As far as we know, there hardly exist any conventions in this domain and consequ
|
|
|
20
20
|
|
|
21
21
|
Although these are the three main data sources, sometimes there’s even more data collected for a match! Looking at recent tracking data, they often come with frame-by-frame **contextual tags** regarding ball possession or ball status, i.e., information whether the play is underway or interrupted. Additionally, professional sports teams still have their own analysts who cover every match **manually coding** phases of interesting play for effective post-game video analysis. Plus, as of recently, advances in deep learning have produced first results on generating player actions from video or tracking data, or tracking data from moving, single-camera setups.
|
|
22
22
|
|
|
23
|
-
## The Challenge
|
|
23
|
+
## The Challenge
|
|
24
24
|
|
|
25
25
|
The sheer amount of data, it’s different types, formats and heterogeneity are a natural cause of complexity for the analysis process. If you’ve ever worked with any one these data sources, you most probably have encountered some challenges during processing. The task becomes even more complex when integrating multiple of these data sources. Event- and tracking data are still typically out of sync due to timing errors in event data acquisition. Differing frame rates or coordinate systems are another hurdle to take in multimodal analyses.
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ Last but not least, the events under observation (we collectively call these _ob
|
|
|
30
30
|
|
|
31
31
|
To sum up, sports data analysis is awesome, but it can become quickly complicated and rather tedious on the implementation level looking at these challenges. All this complication ultimately leads to massive overhead effort needed for data parsing, pre-processing and wrangling. Furthermore, the formal incompatibility of different data sources is a noticeable hindrance on unfolding the data’s full potential. There’s a good reason why, to our knowledge, hardly any applications or scientific publications exist that combine two of the aforementioned data sources (with a few exceptions).
|
|
32
32
|
|
|
33
|
-
## Core Objects
|
|
33
|
+
## Core Objects
|
|
34
34
|
|
|
35
35
|
As stated before, the aim of this package is to tackle some of these challenges. The starting point is to formalize the logic behind team sport data and systematically break down inherent complexity into stand-alone data structures by abstraction and generalization. Most importantly, the desired data classes should be independent from any data provider or source. They should also be performant, clear and intuitive to use and allow a clean interface to data loading and processing. That way, any data processing is attached to the data objects and effectively decoupled from any provider specifics.
|
|
36
36
|
|
|
@@ -45,7 +45,7 @@ To realize this idea, we’ve attempted to break down all that information you c
|
|
|
45
45
|
|
|
46
46
|
On the following pages we discuss a range of topics that are directly linked to the creation and handling of these core data structures, such as handling spatial and temporal data, identities, and so on.
|
|
47
47
|
|
|
48
|
-
## But… why?
|
|
48
|
+
## But… why?
|
|
49
49
|
|
|
50
50
|
Before we proceed, a quick personal note on the necessity of this package. At this point you might be rightfully asking yourself: Why do we need another package that introduces its own data structures and ways of dealing with certain problems? And what’s the purpose of trying to integrate all different data sources and fit them into a single framework? Especially since there already exist packages that aim to solve certain parts of that pipeline?
|
|
51
51
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
source_url: https://floodlight.readthedocs.io/en/latest/compendium/2_design.html
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version:
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:08:54.622Z
|
|
6
6
|
---
|
|
7
7
|
At this point, let’s summarize a few design principles that we decided build our package around. These are problem-specific and on top of any general software design principles. During implementation, we’ve naturally encountered questions on how to solve _this_ or how to incorporate _that_ special case. Often then, half a dozen possible solutions come to mind, none of which appears to be clearly right or wrong. If you’ve decided to contribute and find yourself in this situation, these principles hopefully come in handy.
|
|
8
8
|
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
source_url: https://floodlight.readthedocs.io/en/latest/compendium/3_time.html
|
|
3
3
|
source_type: crawled
|
|
4
4
|
upstream_version:
|
|
5
|
-
crawled_at: 2026-
|
|
5
|
+
crawled_at: 2026-08-11T09:08:54.622Z
|
|
6
6
|
---
|
|
7
7
|
Sports data naturally capture phenomena unfolding through time. That’s not too big of a problem per se, but a few challenges arise managing the time dimension of the data. Plus, a lack of naming conventions leads to sometimes confusing references to parts of sports play (e.g. some call it half times, some periods). So we’ve decided to keep naming of things consistent. Let’s go through this top-down:
|
|
8
8
|
|
|
9
|
-
## Observation-level
|
|
9
|
+
## Observation-level
|
|
10
10
|
|
|
11
11
|
Given all the data for a single observation (such as a match or practice session), we need to deal with the different parts of this event (such as halftimes or different exercises within the session). We call these different parts _segments_.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The key advantage of this separation is an sports-independent handling of the di
|
|
|
16
16
|
|
|
17
17
|
In terms of indexing, there are a few naming conventions we use throughout the code. As an example, for matches that are organized in half times, we use `` `segments` `=` `["HT1",` `"HT2"]` ``. This list is extended with `` `["HT3",` `"HT4"]` `` if we go into overtime.
|
|
18
18
|
|
|
19
|
-
## Data-level
|
|
19
|
+
## Data-level
|
|
20
20
|
|
|
21
21
|
Let’s move on to the data-level handling of time. There’s a major distinction to be made here between _frame-based_ objects such as [XY](https://floodlight.readthedocs.io/en/latest/modules/core/xy.html) and [Code](https://floodlight.readthedocs.io/en/latest/modules/core/code.html) and _list-based_ objects such as [Events](https://floodlight.readthedocs.io/en/latest/modules/core/events.html).
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ List-based objects are collections of events that can happen at any time (and an
|
|
|
26
26
|
|
|
27
27
|
Both categories are treated differently in the time dimension (see below), but there is one thing that unites them: **All time references are always relative to the respective segment** (with timestamps being the exception to the rule).
|
|
28
28
|
|
|
29
|
-
### List-based
|
|
29
|
+
### List-based
|
|
30
30
|
|
|
31
31
|
As events occur irregularly throughout a segment, each event needs to carry information as to when it took place. There are multiple ways to do it, for example by timestamps or the time on the scoreboard (e.g. ‘35:12’). Accordingly, you will find `` `{"timestamp",` `"minute",` `"second"}` `` in the list of protected columns. However, these are merely added for convenience, the single time-identifier we rely on is the `` `gameclock` ``, which measures the elapsed time since the segment started in seconds.
|
|
32
32
|
|
|
@@ -38,7 +38,7 @@ Tip
|
|
|
38
38
|
|
|
39
39
|
We use the built-in `` `datetime` `` objects to handle timestamps, but only if they are _aware_, i.e. timezone information is provided. Some providers use local time-zones when coding these, others always use UTC. So _unaware_ timezones can quickly become a problem. For timezone handling, we use the _pytz_ package.
|
|
40
40
|
|
|
41
|
-
### Frame-based
|
|
41
|
+
### Frame-based
|
|
42
42
|
|
|
43
43
|
Frame-based objects depend on a `` `framerate` ``, which is an attribute in the respective classes. The frame rate denotes the number of frames per second, and typically ranges from one up to a hundred for tracking data. It is important to know for every analysis that is time-sensitive. Each frame thus has a frame number, which can be used for indexing.
|
|
44
44
|
|
|
@@ -50,7 +50,7 @@ You can rely on (and need to take care of) frame-based objects spanning the enti
|
|
|
50
50
|
|
|
51
51
|
You might argue that this is not very Pythonic, but we found that it leads to much leaner objects and let us use the full power of _numpy_, such as indexing or slicing! It’s rather straightforward in this format to manipulate xy or code data at once, and fast when vectorizing manipulations over the whole time dimension.
|
|
52
52
|
|
|
53
|
-
## Handling
|
|
53
|
+
## Handling
|
|
54
54
|
|
|
55
55
|
Of course we try to support any usage of whatever time-information-identification that you prefer. For many purposes, it’s easier to use the scoreboard clock (e.g. for printing out stuff) or timestamps (e.g. for linking stuff). Internally, however, we rely on the `` `gameclock` `` as much as possible. This is due to the robustness reasons given above. But the real deal is the case of joint manipulation of frame-based and list-based objects!
|
|
56
56
|
|