From a3d9761a559b660680097a4ff73d5b68b20c1011 Mon Sep 17 00:00:00 2001 From: kert Date: Thu, 12 Nov 2026 20:26:25 -0500 Subject: [PATCH] fix(dossier): lex shows the held-out stance measurement (dockets list) and current commenter coverage --- dev/scripts/dossier_page/template.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/scripts/dossier_page/template.html b/dev/scripts/dossier_page/template.html index d24ec58..3908dc6 100644 --- a/dev/scripts/dossier_page/template.html +++ b/dev/scripts/dossier_page/template.html @@ -757,7 +757,7 @@ function renderDossier() { `RVU files before 2015 are not captured yet; the payment table starts at CY${M.rvu_years[0]}.`, "Comment dockets before the CY2018 rule are not captured yet; earlier rules show CMS's own summaries only.", `Stance counts are preliminary. ${evalLine(docketRow)}`, - "Commenters are identified for the CY2023 docket only; other years are pending.", + "Commenters are identified on all 23 PFS dockets; stances are classified for the CY2023 docket only so far (other dockets pending).", "Proposed-rule RVUs are captured for the CY2026 and CY2027 proposed rules only.", `regulations.gov posts a personal name for ${named} of the ${D.commenters.length} CY2023 commenters; the rest are shown by organization as posted.`, `${D.review.length} extracted rows are held for review (see Review).`, @@ -1090,7 +1090,8 @@ function evalLine(dr) { const e = dr && dr.eval; if (!e) return "Accuracy not yet measured."; const pos = Math.round(e.recall * e.n_positions); - return `Measured ${e.in_sample ? "on the tuning set" : "on a held-out set"} (${esc(e.docket)}, ${e.n_items} hand-coded comments, ${e.n_positions} positions): the model finds ${Math.round(e.recall * 100)}% of positions (${pos} of ${e.n_positions}); of those it finds, the direction is right ${Math.round(e.direction * 100)}% of the time.`; + const where = esc((e.dockets || [e.docket]).filter(Boolean).join(", ")); + return `Measured ${e.in_sample ? "on the tuning set" : "on a held-out set the prompt was never tuned on"} (${where}; ${e.n_items} hand-coded comments, ${e.n_positions} positions): the model finds ${Math.round(e.recall * 100)}% of positions (${pos} of ${e.n_positions}); of those it finds, the direction is right ${Math.round(e.direction * 100)}% of the time.`; } function renderPolitics() { const dr = docketRow || {};