Wayback archive of old DR playlists (2012-2021, both page layouts) into archive_plays; synthetic rotation lists (thresholds from exact plays vs lists, applied to archived weeks); Airplay Top-20 position vs DR plays

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 04:20:42 +00:00
co-authored by Claude Opus 5.5
parent 992cc2b157
commit 650a6a0f38
4 changed files with 391 additions and 2 deletions
+7
View File
@@ -5,6 +5,7 @@
//! airplay model backtest [--h 1,4,8] [--refit 1] [--out docs/BACKTEST.md]
//! airplay model calibrate [--out docs/CALIBRATION.md] rotation thresholds from DR's lists
//! airplay model nmf [--out docs/NMF.md] New Music Friday Denmark vs DR adds
//! airplay model synth [--out docs/SYNTH.md] synthetic rotation lists (archive + thresholds)
//! 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]
@@ -20,6 +21,7 @@ pub mod kalman;
pub mod nmf;
pub mod panel;
pub mod rank;
pub mod synth;
use crate::db::Db;
use anyhow::Result;
@@ -59,6 +61,11 @@ pub fn run(db: &Db, args: &[String]) -> Result<()> {
print!("{}", report.markdown);
eprintln!("written to {out}");
}
Some("synth") => {
let md = synth::run(db, &p)?;
if let Some(out) = arg(args, "--out") { std::fs::write(out, &md)?; }
print!("{md}");
}
Some("nmf") => {
let md = nmf::run(db, &p)?;
if let Some(out) = arg(args, "--out") { std::fs::write(out, &md)?; }