Models, first layer: artist × DR channel × week panel with IFPI chart history; NB and logit direct h-step models, Kalman artist form, persistence/popularity baselines; walk-forward backtest (docs/BACKTEST.md) and the ranking (forecasts table)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 02:08:48 +00:00
co-authored by Claude Opus 5.5
parent 6272fbd75d
commit eededc7571
12 changed files with 1318 additions and 1 deletions
+4 -1
View File
@@ -3,6 +3,7 @@
//! airplay collect [--db data/airplay.db] [--days 7] [--all-bauer] [--only dr|bauer|hitlisten|deezer|musicbrainz|spotify|playlists|nmf] [--backfill]
//! airplay stats [--db data/airplay.db]
//! airplay check [--db data/airplay.db] gaps, duplicates, DR cross-check, chart completeness
//! airplay model panel | backtest | rank the first models (src/model)
//!
//! --backfill fetches all history at once (every DR artist page, the whole Hitlisten archive);
//! without it a run takes a bounded slice, which is what the daily timer does.
@@ -14,6 +15,7 @@ mod deezer;
mod dr;
mod hitlisten;
mod http;
mod model;
mod musicbrainz;
mod playlists;
mod spotify;
@@ -37,8 +39,9 @@ fn main() -> Result<()> {
Some("collect") => collect(&db, &args, &db_path),
Some("stats") => stats(&db),
Some("check") => check::run(&db),
Some("model") => model::run(&db, &args),
_ => {
eprintln!("usage: airplay collect [--db FILE] [--days 7] [--all-bauer] [--only dr|bauer|hitlisten|deezer|musicbrainz|spotify|playlists|nmf] [--backfill]\n airplay stats [--db FILE]\n airplay check [--db FILE]");
eprintln!("usage: airplay collect [--db FILE] [--days 7] [--all-bauer] [--only dr|bauer|hitlisten|deezer|musicbrainz|spotify|playlists|nmf] [--backfill]\n airplay stats [--db FILE]\n airplay check [--db FILE]\n airplay model panel|backtest|rank");
std::process::exit(2);
}
}