Release-event model: 'if the artist releases a new song, will DR add it' trained on clean releases (no other release in the 6 weeks before), with its own walk-forward test; ranking defaults to it and leaves out artists who just released; pool note updated
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+14
-11
@@ -120,8 +120,8 @@ svg text { fill: var(--muted); font-size: 11px; }
|
||||
</div>
|
||||
<div class="ctl">Assume
|
||||
<select id="mode">
|
||||
<option value="rel">They release in the window</option>
|
||||
<option value="mix">Their usual release rate</option>
|
||||
<option value="rel">They release a new song</option>
|
||||
<option value="mix">Any add (current songs included)</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="ctl">Sort by
|
||||
@@ -132,7 +132,8 @@ svg text { fill: var(--muted); font-size: 11px; }
|
||||
</select>
|
||||
</div>
|
||||
<div class="ctl">Artist <input type="search" id="q" placeholder="Search…"></div>
|
||||
<div class="ctl"><label class="chk"><input type="checkbox" id="dk"> Danish acts only</label></div>
|
||||
<div class="ctl"><label class="chk"><input type="checkbox" id="dk"> Danish acts only</label>
|
||||
<label class="chk" title="Artists with a release in the last 6 weeks: their current song is still running, so a new-song estimate doesn't apply yet"><input type="checkbox" id="recent"> Include artists who just released</label></div>
|
||||
</div>
|
||||
<div class="tablewrap">
|
||||
<table>
|
||||
@@ -145,7 +146,7 @@ svg text { fill: var(--muted); font-size: 11px; }
|
||||
</table>
|
||||
</div>
|
||||
<button class="more" id="more" hidden>Show more</button>
|
||||
<p class="note">"In rotation now" lists DR stations where the artist is on the list, then Bauer stations (grey) with 14+ plays in the last 7 days. "Assume they release" shows the chance if the artist releases something in the window (release dates from their Deezer discography); "usual release rate" weighs that by how often they release. <b>New add</b> = the chance that the artist gets a song into rotation within the 8-week window: entering rotation (at or above the station's weekly play threshold) after at least 4 weeks out of rotation. For "any DR station", out of rotation everywhere first. An artist with a song in rotation now usually has to drop out before a new add, which is why current hits rank lower here. "In rotation now" shows where the artist is in rotation in the latest week; plays per week are for the window's first week. Click an artist for history and a what-if.</p>
|
||||
<p class="note">"In rotation now" lists DR stations where the artist is on the list, then Bauer stations (grey) with 14+ plays in the last 7 days. "They release a new song" = the chance DR adds a new song within 8 weeks of its release, learned from past releases with no other release in the 6 weeks before (so a current song's success isn't counted as the new one's); the new song's NMF Denmark placement is weighed by how often the artist's releases were placed. "Any add" = any new add in the window, current songs included. <b>New add</b> = the chance that the artist gets a song into rotation within the 8-week window: entering rotation (at or above the station's weekly play threshold) after at least 4 weeks out of rotation. For "any DR station", out of rotation everywhere first. An artist with a song in rotation now usually has to drop out before a new add, which is why current hits rank lower here. "In rotation now" shows where the artist is in rotation in the latest week; plays per week are for the window's first week. Click an artist for history and a what-if.</p>
|
||||
</section>
|
||||
|
||||
<section id="tab-model" hidden>
|
||||
@@ -164,8 +165,8 @@ svg text { fill: var(--muted); font-size: 11px; }
|
||||
<p>Since streaming started counting (Nov 2014), 55% of songs on both charts hit the Track Top-40 first (median 5 weeks before airplay), 29% move together and 17% are radio first. Another 837 songs reached the Airplay Top-20 without ever charting on the Track Top-40.</p>
|
||||
<h2>Known limits</h2>
|
||||
<ul>
|
||||
<li><b>The artist pool is selected.</b> It holds only artists DR played in mid-November 2026, so every artist had airplay at the end of the window. Scores for the last weeks are flattered.</li>
|
||||
<li><b>Not yet "if they release a song on date X".</b> The ranking is expected airplay given current form and chart situation. Conditioning on a release needs release dates (being collected).</li>
|
||||
<li><b>The artist pool is artists connected to DR.</b> About 7,900 artists: those DR played in mid-November 2026 (3,250) plus artists credited on tracks DR has played and their groups (4,700). Nearly half had no DR plays in the last 4 weeks, so the pool isn't only current airplay, but it isn't every releasing artist either.</li>
|
||||
<li><b>Per artist, not per song.</b> DR's history counts plays per artist, so "a new song was added" is learned from releases with no other release in the 6 weeks before. For artists who just released, a new song would compete with the current one.</li>
|
||||
<li><b>Rotation thresholds</b> are fitted to six of DR's weekly rotation lists inside the 51-week window ("plays ≥ threshold" matches the real lists with F1 ≈ 0.74 on P3/P4, 0.78 on P6, about 0.5 on P5/P8, which play more off-list).</li>
|
||||
<li><b>Christmas</b> is only seen once, as history. Forecasts for weeks 48–52 don't know about Christmas songs yet.</li>
|
||||
</ul>
|
||||
@@ -247,7 +248,8 @@ async function loadRank() {
|
||||
|
||||
function render() {
|
||||
const h = +$('h').value, g = $('ch').value, sort = $('sort').value, q = $('q').value.trim().toLowerCase(), dk = $('dk').checked;
|
||||
let rows = data[h].filter(r => (!q || r.name.toLowerCase().includes(q)) && (!dk || r.danish));
|
||||
const newSong = $('mode').value === 'rel';
|
||||
let rows = data[h].filter(r => (!q || r.name.toLowerCase().includes(q)) && (!dk || r.danish) && (!newSong || !r.recent_release || $('recent').checked));
|
||||
const key = sort === 'p' ? r => [chanP(r, g) ?? 0, chanPlays(r, g) ?? 0]
|
||||
: sort === 'plays' ? r => [chanPlays(r, g) ?? 0, 0]
|
||||
: r => [(chanPlays(r, g) ?? 0) - nowPlays(r, g), 0];
|
||||
@@ -258,7 +260,7 @@ function render() {
|
||||
const range = g === 'any' ? ` <small class="note">(${Math.round(r.lo)}–${Math.round(r.hi)})</small>` : '';
|
||||
return `<tr data-id="${esc(r.id)}">
|
||||
<td class="l">${i + 1}</td>
|
||||
<td class="l name">${esc(r.name)}${r.danish ? '<small>DK</small>' : ''}</td>
|
||||
<td class="l name">${esc(r.name)}${r.danish ? '<small>DK</small>' : ''}${r.recent_release && $('mode').value === 'rel' ? '<small title="Released in the last 6 weeks: a new song now would compete with it">just released</small>' : ''}</td>
|
||||
<td><span class="bar"><i style="width:${Math.round((p ?? 0) * 70)}px"></i>${pct(p)}</span></td>
|
||||
${GROUPS.map(([c]) => `<td class="hide-sm"><span class="cell" style="${heat(chanP(r, c))}">${pct(chanP(r, c))}</span></td>`).join('')}
|
||||
<td class="l hide-sm">${nowChips(r.now, r.bauer)}</td>
|
||||
@@ -330,12 +332,13 @@ async function showArtist(id) {
|
||||
<button class="x" aria-label="Close" onclick="closeDrawer()">×</button>
|
||||
</div>
|
||||
<div class="sec">
|
||||
<h3>Chance of a new add in the 8 weeks from ${fc.window_start ? fmtDate(fc.window_start) : '—'}${$('mode').value === 'rel' && fc.add_rel ? ', if they release in it' : ''}</h3>
|
||||
<h3>${$('mode').value === 'rel' && fc.add_rel ? 'If they release a new song: chance DR adds it within 8 weeks' : `Chance of any new add in the 8 weeks from ${fc.window_start ? fmtDate(fc.window_start) : '—'} (current songs included)`}</h3>
|
||||
<div class="kpis">
|
||||
<div class="kpi"><div>Any DR station</div><b>${pct(fc.add_any)}</b></div>
|
||||
${GROUPS.map(([g, l]) => `<div class="kpi"><div>${l}</div><b>${pct(chanP(fc, g))}</b></div>`).join('')}
|
||||
</div>
|
||||
${fc.p_release != null ? `<p class="note">Chance they release something in the window (from their release rate): <b>${pct(fc.p_release)}</b>. If they release: ${pct(fc.add_any_rel)} · at their usual rate: ${pct(fc.add_any)}.${fc.add_any_nmf != null ? ` If the release is placed on New Music Friday Denmark: <b>${pct(fc.add_any_nmf)}</b> (their releases were placed about ${pct(fc.p_nmf)} of the time).` : ''}</p>` : '<p class="note">No discography found on Deezer for this artist, so release timing isn\'t in the forecast.</p>'}
|
||||
${fc.recent_release ? '<p class="note"><b>Just released</b> (in the last 6 weeks). DR counts plays per artist, so the model can\'t tell a new song\'s chances from the current song\'s; the new-song estimate below doesn\'t really apply until the current song has run its course, and these artists are left out of the new-song ranking by default.</p>' : ''}
|
||||
${fc.p_release != null ? `<p class="note">If they release a new song: <b>${pct(fc.add_any_rel)}</b>; if it's placed on New Music Friday Denmark: <b>${pct(fc.add_any_nmf)}</b> (their releases were placed about ${pct(fc.p_nmf)} of the time). Any add in the window, current songs included: ${pct(fc.add_any)} (chance they release in the window: ${pct(fc.p_release)}).</p>` : '<p class="note">No discography found on Deezer for this artist, so release timing isn\'t in the forecast.</p>'}
|
||||
<p class="note">In rotation now: ${nowChips(a.now, Object.fromEntries(Object.entries(a.bauer || {}).map(([s, v]) => [s, v.plays])))} · plays in the week of ${fp.week ? fmtDate(fp.week) : '—'}: <b>${Math.round(fp.mean ?? 0)}</b> (${Math.round(fp.lo ?? 0)}–${Math.round(fp.hi ?? 0)})</p>
|
||||
</div>
|
||||
<div class="sec"><h3>Weekly plays, last 51 weeks and next 12</h3>${historyChart(a)}</div>
|
||||
@@ -415,7 +418,7 @@ document.querySelectorAll('nav button').forEach(b => b.addEventListener('click',
|
||||
$('tab-rank').hidden = b.dataset.tab !== 'rank'; $('tab-model').hidden = b.dataset.tab !== 'model';
|
||||
}));
|
||||
$('h').addEventListener('input', () => { shown = 100; loadRank(); });
|
||||
['ch', 'sort', 'dk', 'mode'].forEach(id => $(id).addEventListener('change', () => { shown = 100; render(); }));
|
||||
['ch', 'sort', 'dk', 'mode', 'recent'].forEach(id => $(id).addEventListener('change', () => { shown = 100; render(); }));
|
||||
$('q').addEventListener('input', () => { shown = 100; render(); });
|
||||
$('more').addEventListener('click', () => { shown += 100; render(); });
|
||||
$('rows').addEventListener('click', e => { const tr = e.target.closest('tr[data-id]'); if (tr) showArtist(tr.dataset.id); });
|
||||
|
||||
Reference in New Issue
Block a user