Repository navigation
feat(M83): divergence heatmap by token position - #180
Merged
Merged
Conversation
hlin99-Review-Bot
approved these changes
Apr 6, 2026
hlin99-Review-Bot
left a comment
There was a problem hiding this comment.
LGTM. Clean implementation — dataclasses, bucketing logic, formatting, and CLI integration all look solid. 14 tests cover the important cases (empty, single, multiple, None gaps, boundary). CI green. Approved.
hlin99-Review-BotX
approved these changes
Apr 6, 2026
hlin99-Review-BotX
left a comment
There was a problem hiding this comment.
M83 looks solid. Clean heatmap module with proper bucketing, dataclass serialization, and bar-chart formatting. Tests cover edge cases well (empty, single, none logprob, zero buckets). CLI integration and docs updated correctly. LGTM ✅
hlin99
force-pushed
the
feat/m83-divergence-heatmap
branch
from
April 6, 2026 05:35
e7f4fae to
02cd85c
Compare
- heatmap.py: compute_heatmap(), HeatmapBucket, HeatmapReport, format_heatmap() - CLI subcommand: xpyd-acc heatmap --report <path> --buckets <n> --json <path> - Bin divergence points by token position with avg logprob gap per bucket - Rich terminal bar chart visualization - JSON export support - 14 tests covering computation, edge cases, formatting, JSON export - Updated ROADMAP.md: M82 ✅, added M83-M85 - Updated docs/iterations/current.md Closes #179
hlin99
force-pushed
the
feat/m83-divergence-heatmap
branch
from
April 6, 2026 06:45
02cd85c to
35a7c24
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
xpyd-acc heatmapsubcommand that bins divergence points by token position across all samples in a batch report.Features
heatmap.pymodule:compute_heatmap(),HeatmapBucket,HeatmapReport,format_heatmap()xpyd-acc heatmap --report <path> --buckets <n> --json <path>Tests
14 tests covering bucket computation, edge cases (no divergent, single sample, none gaps), formatting, JSON export.
Closes #179