Add dynamic color scaling support using mean and standard deviation#94
Draft
Add dynamic color scaling support using mean and standard deviation#94
Conversation
Co-authored-by: eh-main-bot <171766998+eh-main-bot@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Support dynamic color scaling in plots using mean and standard deviation
Add dynamic color scaling support using mean and standard deviation
Jun 3, 2025
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #94 +/- ##
==========================================
- Coverage 95.78% 95.74% -0.05%
==========================================
Files 19 19
Lines 736 776 +40
==========================================
+ Hits 705 743 +38
- Misses 31 33 +2 ☔ View full report in Codecov by Sentry. |
Collaborator
|
@copilot make sure 'make check' is pass. |
Contributor
Author
✅ |
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.
This PR adds support for dynamic color scaling in plots using mean and standard deviation, addressing the need for more robust color mapping that is less sensitive to outliers.
Problem
Currently, the plot color mapping in Tab-right assumes that error or metric values use min/max normalization, which can be problematic when:
Solution
Added a new
normalize_scores()function and updated all plotting functions to support two scaling methods:1. MinMax Scaling (existing behavior, default)
2. Standard Deviation Scaling (new)
Key Features
kparameter controls how many standard deviations to includeExample Usage
Benefits
Fixes #91.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.