fix(dossier): lex shows the held-out stance measurement (dockets list) and current commenter coverage
Some checks failed
CI / lint (push) Successful in 1m39s
CI / notebooks-smoke (push) Successful in 2m8s
Deploy / changes (push) Successful in 14s
Deploy / notebooks (push) Has been skipped
Deploy / zotero (push) Has been skipped
Deploy / docs (push) Has been skipped
Deploy / api (push) Has been skipped
Deploy / bcda (push) Has been skipped
Deploy / llm (push) Has been skipped
Deploy / mc (push) Has been skipped
CI / test (push) Has been cancelled
Deploy / report (push) Has been cancelled

This commit is contained in:
kert
2026-11-12 20:26:25 -05:00
parent 61fc26cfbe
commit a3d9761a55

View File

@@ -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 || {};