Skip to content

feat(scorecard): defense-deck scorecard as the default look - #6

Merged
vitusbenson merged 2 commits into
mainfrom
feat/scorecard-default-style
Nov 22, 2026
Merged

vitusbenson merged 2 commits into
mainfrom
feat/scorecard-default-style

Conversation

@vitusbenson

Copy link
Copy Markdown
Collaborator
  • nf.scorecard now draws the PhD-defense-deck card: cell text is the raw value, colour is percent better than a baseline on the fixed 11-band scorecard_skill_cmap (blue better, red worse), outlined baseline row/cells, grey n/a and unresolved cells, row and column groups with gaps, group titles over 1.6 pt rules, wrapped horizontal headings with a unit line, 0.42 in cells, colourbar with band-edge ticks and pointed ends
  • new args: color_values, text, reference_row, reference_cells, unresolved, na_text, baseline_suffix, row_groups, row_group_gap, group_rule, cell_in, font_scale, floor; new scorecard_skill_cmap(); skill_gap(mode="percent", floor=)
  • behaviour change (CHANGELOG): highlight_best=False, rank colouring on the skill palette instead of RdYlGn, reference= colours by percent, group_gap 0.35, figure sized from cells, headings are text not ticks
  • cmap="RdBu" orange cells: not a sign bug in scorecard; nf.cmap("RdBu") is aliased to RdBu_r (red high), so better cells came out red/orange. Documented and pinned in a test; alias left unchanged
  • before: rank colours on RdYlGn, best cell outlined, rotated-free plain ticks, no baseline. After: docs/gallery/34_scorecard_baseline.png reproduces slide 49 on synthetic data
  • 573 tests pass, ruff clean; version bump left to the release PR
  • docs build (mkdocs --strict) not verifiable locally: mkdocstrings/pygments version clash in the venv, unrelated to this change

- text = raw value, colour = percent better than baseline on fixed 11-band scale
- color_values, text, reference_row, reference_cells, unresolved, na_text
- row_groups, group rule, wrapped horizontal headings with unit line, cell_in sizing
- colourbar with band-edge ticks and pointed ends
- scorecard_skill_cmap(), skill_gap(mode='percent', floor=)
- outline_boxes: fill=False
- tests: old default-layout assertions updated (ticks, bold titles) as headings are now text
- re-render scorecard gallery and guide images
@vitusbenson
vitusbenson merged commit 6e6ba6b into main Nov 22, 2026
8 checks passed
@vitusbenson
vitusbenson deleted the feat/scorecard-default-style branch November 22, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant