Issue #40: retrain artifact on 151-row train split + model card fix
Browse files- couto/12yd/README.md +19 -12
couto/12yd/README.md
CHANGED
|
@@ -9,7 +9,7 @@ tags:
|
|
| 9 |
|
| 10 |
# 12yd β Penalty Shootout Side Prediction
|
| 11 |
|
| 12 |
-
Multiclass classifier (L / C / R) on 18 per-kick features; trained on
|
| 13 |
|
| 14 |
## Save rate is the deployment KPI
|
| 15 |
|
|
@@ -40,10 +40,14 @@ should compare to the baselines.
|
|
| 40 |
|
| 41 |
`random` and `last-side` baselines are deterministic and do not depend on
|
| 42 |
the retrain; the v2 numbers are pinned. The `lightgbm` and `logreg` rows
|
| 43 |
-
reflect the v3 fit on the
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
### Statistical caveat β 28-row holdout
|
| 49 |
|
|
@@ -122,9 +126,9 @@ feature_columns = artifact["feature_columns"]
|
|
| 122 |
## Repository layout
|
| 123 |
|
| 124 |
- `model/lightgbm.pkl` β the frozen LightGBM (LGBMClassifier inside a
|
| 125 |
-
`LightGBMClassifierWrapper`), trained on the
|
| 126 |
-
(the
|
| 127 |
-
|
| 128 |
- `model/metrics.json` β the held-out metrics report.
|
| 129 |
- `data/shootout_kicks.jsonl` β 179 target kicks across 18 shootouts in 6
|
| 130 |
national-team tournaments, 2021β2022 (the v2 42-shootout scope minus
|
|
@@ -162,10 +166,13 @@ data layer.
|
|
| 162 |
in the A3 feature. 1080 of 1247 v2 rows with `"Unknown"` get real
|
| 163 |
declared-foot values from the cached `pageProps.data.playerInformation[]`
|
| 164 |
payload. The v3 `predictions.jsonl` has 0 `"Unknown"` rows.
|
| 165 |
-
- **Retrained on the
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
|
|
|
|
|
|
|
|
|
| 169 |
- **Save rate is now the headline metric** in this card; the
|
| 170 |
accuracy-led v2 card is replaced. The 28-row holdout caveat
|
| 171 |
applies to both metrics at this sample size.
|
|
|
|
| 9 |
|
| 10 |
# 12yd β Penalty Shootout Side Prediction
|
| 11 |
|
| 12 |
+
Multiclass classifier (L / C / R) on 18 per-kick features; trained on the 151 pre-2026 shootout kicks across 6 national-team tournaments (2021β2022). Frozen deployment artifact for `matheusccouto/12yd`.
|
| 13 |
|
| 14 |
## Save rate is the deployment KPI
|
| 15 |
|
|
|
|
| 40 |
|
| 41 |
`random` and `last-side` baselines are deterministic and do not depend on
|
| 42 |
the retrain; the v2 numbers are pinned. The `lightgbm` and `logreg` rows
|
| 43 |
+
reflect the v3 fit on the 151 pre-2026 training rows (Issue #40: the
|
| 44 |
+
artifact and the metrics describe the same model; the previous recipe
|
| 45 |
+
fit the artifact on all 179 rows including the 28-row holdout, so the
|
| 46 |
+
deployed save rate was 0.107 β in-sample memorisation β not the 0.464
|
| 47 |
+
this card advertises). The 18 formerly-skipped refs have URL rotation
|
| 48 |
+
issues and need a separate fix β see `## Further Notes`. The `actual
|
| 49 |
+
keeper` row is `null` because StatsBomb does not yet publish
|
| 50 |
+
per-keeper dive-direction data for the in-scope tournaments.
|
| 51 |
|
| 52 |
### Statistical caveat β 28-row holdout
|
| 53 |
|
|
|
|
| 126 |
## Repository layout
|
| 127 |
|
| 128 |
- `model/lightgbm.pkl` β the frozen LightGBM (LGBMClassifier inside a
|
| 129 |
+
`LightGBMClassifierWrapper`), trained on the 151 pre-2026 training
|
| 130 |
+
fold (the same model the metrics describe; Issue #40 closed the
|
| 131 |
+
artifact-vs-metrics data leak).
|
| 132 |
- `model/metrics.json` β the held-out metrics report.
|
| 133 |
- `data/shootout_kicks.jsonl` β 179 target kicks across 18 shootouts in 6
|
| 134 |
national-team tournaments, 2021β2022 (the v2 42-shootout scope minus
|
|
|
|
| 166 |
in the A3 feature. 1080 of 1247 v2 rows with `"Unknown"` get real
|
| 167 |
declared-foot values from the cached `pageProps.data.playerInformation[]`
|
| 168 |
payload. The v3 `predictions.jsonl` has 0 `"Unknown"` rows.
|
| 169 |
+
- **Retrained on the 151 pre-2026 training rows** (the same model the
|
| 170 |
+
metrics describe; Issue #40 closed the artifact-vs-metrics data
|
| 171 |
+
leak β the v3 release shipped a 179-row artifact with a 0.107
|
| 172 |
+
in-sample save rate, not the 0.464 the card advertised). The
|
| 173 |
+
holdout (28 WC 2026 kicks, 2026-01-01+) is unchanged from v2;
|
| 174 |
+
`n_train` is 151. The 18 formerly-skipped refs have URL rotation
|
| 175 |
+
issues; see `## Further Notes`.
|
| 176 |
- **Save rate is now the headline metric** in this card; the
|
| 177 |
accuracy-led v2 card is replaced. The 28-row holdout caveat
|
| 178 |
applies to both metrics at this sample size.
|