feat: add violin plot option and threshold line to metric histograms#2460
Open
nuthalapativarun wants to merge 1 commit into
Open
feat: add violin plot option and threshold line to metric histograms#2460nuthalapativarun wants to merge 1 commit into
nuthalapativarun wants to merge 1 commit into
Conversation
Adds a histogram/violin toggle and pass/fail threshold line to the 'Metric Histograms' tab on the Leaderboard page. - Histogram bars colored by mean score category (pass/warn/fail) - Violin plot shows box, mean line, and individual data points - Dashed threshold line at 0.7 (higher-is-better) or 0.3 (lower) - feedback_directions propagated from render_leaderboard to _render_plot_tab Closes truera#2419
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.
Description
Enhances the "Metric Histograms" tab on the Leaderboard page with violin plots and score threshold lines. Closes #2419.
Changes to
src/dashboard/trulens/dashboard/tabs/Leaderboard.py:st.radioselector lets users switch betweenHistogramandViolinchart typesCATEGORY.of_score()andCategory.colorgo.Violin):feedback_directionspassed fromrender_leaderboarddown to_render_plot_tabso threshold direction is accurate per metricOther details good to know for developers
The existing "Metric Histograms" tab already used
go.Histogramandplotly— this PR builds on that foundation.go.Violinis part of the sameplotly.graph_objectsimport already present.Type of change