Knowable pool (artists enter only from their first release/play/chart/list/NMF), pooled out-of-sample recalibration (Platt vs isotonic; the site uses pooled Platt per channel, isotonic any channel), release-timing baseline, 8-week bootstrap blocks, surge-rule precision/recall vs the lists with a constant grid (docs/ADDCHECK.md); backtests restructured to score all variants with calibration tables
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+7
-1
@@ -14,6 +14,7 @@
|
||||
pub mod addcheck;
|
||||
pub mod adds;
|
||||
pub mod backtest;
|
||||
pub mod calib;
|
||||
pub mod calibrate;
|
||||
pub mod common;
|
||||
pub mod features;
|
||||
@@ -49,6 +50,9 @@ pub fn run(db: &Db, args: &[String]) -> Result<()> {
|
||||
let charted = (0..p.a()).filter(|&a| p.chart(a, last).t40_hits > 0 || p.chart(a, last).air_hits > 0).count();
|
||||
let danish = p.artists.iter().filter(|a| a.danish).count();
|
||||
println!("artists matched to IFPI chart history: {charted}; Danish: {danish}");
|
||||
let known = |t: usize| (0..p.a()).filter(|&a| p.known(a, t)).count();
|
||||
println!("artists knowable (first release, DR play, chart, list, archive or NMF) by week 0: {}, week 26: {}, week {}: {} (of {})",
|
||||
known(0), known(26), p.w() - 1, known(p.w() - 1), p.a());
|
||||
}
|
||||
Some("backtest") => {
|
||||
let horizons: Vec<usize> = arg(args, "--h").unwrap_or_else(|| "1,4,8".into()).split(',').filter_map(|s| s.trim().parse().ok()).collect();
|
||||
@@ -88,7 +92,9 @@ pub fn run(db: &Db, args: &[String]) -> Result<()> {
|
||||
Some("leakcheck") => { print!("{}", leakcheck::run(&p)?); }
|
||||
Some("addcheck") => {
|
||||
if let Some(r) = arg(args, "--rule") { let _ = adds::ADD_RULE.set(r); }
|
||||
print!("{}", addcheck::run(db, &p)?);
|
||||
let md = addcheck::run(db, &p, args.iter().any(|a| a == "--tune"))?;
|
||||
if let Some(out) = arg(args, "--out") { std::fs::write(out, &md)?; }
|
||||
print!("{md}");
|
||||
}
|
||||
Some("events") => {
|
||||
if let Some(r) = arg(args, "--rule") { let _ = adds::ADD_RULE.set(r); }
|
||||
|
||||
Reference in New Issue
Block a user