Clayton Young
509190118f
fix(examples): correct quantile indices, variable shadowing, and test design in anomaly + covariates examples
...
Anomaly detection fixes:
- Fix critical quantile index bug: index 0 is mean not q10; correct indices are q10=1, q20=2, q80=8, q90=9
- Redesign test: use all 36 months as context, inject 3 synthetic anomalies into future
- Result: 3 CRITICAL detected (was 11/12 — caused by test-set leakage + wrong indices)
- Update severity labels: CRITICAL = outside 80% PI, WARNING = outside 60% PI
Covariates fixes:
- Fix variable-shadowing bug: inner dict comprehension overwrote outer loop store_id
causing all stores to get identical covariate arrays (store_A's price for everyone)
- Give each store a distinct price baseline (premium $12, standard $10, discount $7.50)
- Trim CONTEXT_LEN from 48 → 24 weeks; CSV now 108 rows (was 180)
- Add NOTE ON REAL DATA comment: temp file pattern for large external datasets
Both scripts regenerated with clean outputs.
2026-02-23 07:43:04 -05:00
..
2026-01-02 13:27:48 -08:00
2026-01-02 13:27:48 -08:00
2026-01-08 08:53:35 -08:00
2026-01-05 14:25:22 -08:00
2026-01-02 13:27:48 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 13:01:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-27 10:41:40 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-02 13:27:48 -08:00
2026-01-07 15:15:18 +08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-02-03 14:31:19 -08:00
2026-02-11 09:42:22 -05:00
2026-02-03 17:03:44 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-02-03 14:31:19 -08:00
2026-02-03 14:31:19 -08:00
2026-01-05 14:29:10 -08:00
2026-02-03 14:31:19 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 10:15:22 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-08 15:05:30 +08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-02 13:27:48 -08:00
2026-01-21 09:16:34 -05:00
2026-01-05 18:20:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 15:46:55 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-26 20:25:28 +08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-02-03 14:31:19 -08:00
2026-01-12 13:22:43 -08:00
2026-01-05 14:25:22 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-02-03 14:31:19 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-02-03 14:31:19 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:25:22 -08:00
2026-01-02 13:27:48 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:25:22 -08:00
2026-01-05 14:29:10 -08:00
2026-01-02 13:27:48 -08:00
2026-02-23 07:43:04 -05:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:25:22 -08:00
2026-01-02 13:27:48 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-08 22:38:59 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 13:01:10 -08:00
2026-01-05 14:29:10 -08:00
2026-01-05 14:29:10 -08:00