Repository navigation
feat(viewer): show the min, median, and max of the numeric metrics - #745
Open
omkargaikwad23 wants to merge 3 commits into
Open
omkargaikwad23 wants to merge 3 commits into
omkargaikwad23 wants to merge 3 commits into
Conversation
For a run with num_trials above 1, the Dashboard tab gets a table with the min, median, and max across trials of each numeric metric of the suite, from summary.csv. On the Stability tab, an open scenario row gets the same values for the scenario, from run_stats.csv.
The metrics were a small text table with the column names of the files. Each metric is now a card in the style of the other Dashboard cards: the name as words, the median in large text, and the min and the max below it. A tooltip on the label tells how the job calculates the values. The column headers and the cards share the label with a tooltip.
omkargaikwad23
marked this pull request as ready for review
November 26, 2026 15:14
omkargaikwad23
requested review from
IsmailMehdi,
helloeve and
prernakakkar-google
as code owners
November 26, 2026 15:14
In a flex row, the cards of the last row were wider than the others. A run with 7 numeric metrics showed 6 cards and then 1 card with the full width. The cards are now in a grid with 4 cards in each row, as the cards of the suite stats.
This was referenced Nov 26, 2026
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.
Stacked on #744.
What
For a run with
num_trialsabove 1, the viewer shows the min, median, and max of each numeric metric, such astoken_consumptionandend_to_end_latency.trial_min,trial_median, andtrial_maxcolumns ofsummary.csv(feat(agent): add the suite stats across trials to summary.csv #715).<metric>_min,<metric>_median, and<metric>_maxcolumns ofrun_stats.csv(feat(agent): write run_stats.csv with the stats of each scenario #713).Each card has the same style as the other cards of the Dashboard tab:
Details:
Why
The pass rate shows the quality of a scenario across trials. These values show its cost across trials. A wide range between the min and the max shows that the tokens or the latency of a scenario are not stable.
Testing
.ci/verify_viewer.pypasses.num_trials: 3. In headless Chrome, the Dashboard tab showed 4 metric cards with the same values assummary.csv. An open row of the Stability tab showed the 4 metric cards of the scenario with the same values asrun_stats.csv.summary.csv.Screenshots (Google-internal).
Not run: a browser window narrower than 1400 px.