Rotation thresholds fitted to DR's own lists (P3 23, P4 ~14, P6 16 plays/week: ~3x the old guess); IFPI 2010-2026 walk-forward test bed and route/lead-lag analysis; site and docs updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 02:54:59 +00:00
co-authored by Claude Opus 5.5
parent c698925814
commit bbfb437011
10 changed files with 557 additions and 5 deletions
+9 -3
View File
@@ -5,10 +5,16 @@ use super::features::{self, LAGS, P};
use super::glm::{self, Design};
use super::panel::{Panel, C};
/// "In rotation" on channel c = at least tau[c] plays in the week. Set from each channel's
/// distribution of non-zero artist-weeks (75th percentile, at least 3) over weeks < `upto`;
/// to be calibrated on the Friday rotation lists once they're parsed.
/// "In rotation" on channel c = at least tau[c] plays in the week: the thresholds fitted to DR's
/// rotation lists if `airplay model calibrate` has run, else each channel's 75th percentile of
/// non-zero artist-weeks (at least 3) over weeks < `upto`.
pub fn thresholds(p: &Panel, upto: usize) -> [u32; C] {
// Calibrated on DR's own rotation lists when available (`airplay model calibrate`).
if let Some(t) = p.list_tau { return t; }
thresholds_from_plays(p, upto)
}
pub fn thresholds_from_plays(p: &Panel, upto: usize) -> [u32; C] {
let mut tau = [3u32; C];
for (c, t) in tau.iter_mut().enumerate() {
let mut v: Vec<f64> = (0..p.a()).flat_map(|a| (0..upto).map(move |w| (a, w))).map(|(a, w)| p.y(a, c, w)).filter(|&y| y > 0.0).collect();