Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve exact-match cardinality when binning data for plots #6

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

athewsey
Copy link
Contributor

@athewsey athewsey commented Oct 8, 2024

Issue #, if available: #5

Description of changes:

Update binning() to preserve input vector values as-is, in case the cardinality of the data already exactly matches the requested number of bins.

Update plot_heatmap() to indicate whether the displayed input & output token counts are binned ranges or exact values.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

If binning() is passed a vector already exactly matching its target
cardinality, it now returns the values of the vector as-is.
Specify on LatencyHeatmap plots whether labelled I/O token values are
binned ranges or exact counts
@athewsey athewsey requested a review from acere October 8, 2024 04:32
Copy link
Contributor

@acere acere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@athewsey athewsey merged commit eb98131 into main Oct 9, 2024
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.

2 participants