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
+14
View File
@@ -3,14 +3,18 @@
//!
//! airplay model panel what the panel holds
//! airplay model backtest [--h 1,4,8] [--refit 1] [--out docs/BACKTEST.md]
//! airplay model calibrate rotation thresholds from DR's lists -> docs/CALIBRATION.md
//! airplay model ifpi the 20-year IFPI test bed -> docs/IFPI.md
//! airplay model adds [--h 0,4] [--out docs/BACKTEST-ADDS.md] backtest of the new-add model
//! airplay model rank [--h 4] [--max-h 12] [--top 50]
pub mod adds;
pub mod backtest;
pub mod calibrate;
pub mod common;
pub mod features;
pub mod glm;
pub mod ifpi;
pub mod kalman;
pub mod panel;
pub mod rank;
@@ -53,6 +57,16 @@ pub fn run(db: &Db, args: &[String]) -> Result<()> {
print!("{}", report.markdown);
eprintln!("written to {out}");
}
Some("ifpi") => {
let md = ifpi::run(db)?;
std::fs::write("docs/IFPI.md", &md)?;
print!("{md}");
}
Some("calibrate") => {
let md = calibrate::run(db, &p)?;
std::fs::write("docs/CALIBRATION.md", &md)?;
print!("{md}");
}
Some("adds") => {
let horizons: Vec<usize> = arg(args, "--h").unwrap_or_else(|| "0,4".into()).split(',').filter_map(|s| s.trim().parse().ok()).collect();
let tau = common::thresholds(&p, 26);