Default window 2 weeks (1-week option added) on the site, best week and what-if; new-song backtest takes the window (--w, default 2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 12:32:28 +00:00
co-authored by Claude Opus 5.5
parent 37b3029e02
commit 0e511e1e0b
6 changed files with 114 additions and 107 deletions
+2 -1
View File
@@ -116,7 +116,8 @@ pub fn run(db: &Db, p: &Panel, max_h: usize, show_h: usize) -> Result<Vec<Line>>
let rot = Rot::new(p, &tau);
// The release-event model ("if they release a new song, will DR add it?"), the same for every
// window start: the artist's state now, the new song's NMF placement blended from history.
let ev = AddModel::fit_events_site(p, &rot, p.w() - 1);
// The site's default: added within 2 weeks of the release.
let ev = AddModel::fit_events_pooled(p, &rot, p.w() - 1, 2);
let t0 = p.w() - 1;
// A new song released in week t0+h+1: time-since features moved forward to then; none if too
// soon after the artist's last release.