Skip to content

Update Majority Voting Plots#39

Merged
alexandonian merged 2 commits into
mainfrom
revisions
Oct 6, 2025
Merged

Update Majority Voting Plots#39
alexandonian merged 2 commits into
mainfrom
revisions

Conversation

@alexandonian
Copy link
Copy Markdown
Contributor

No description provided.

…ction

- Introduced `group_name_mappings` in `MajorityVoteConfig` to allow for custom labels in majority vote results.
- Updated `majority_vote_accuracy_by_k` function to accept a `legend_loc` parameter for flexible legend positioning.
- Adjusted y-axis limits and tick marks for improved plot clarity.
- Modified `run_majority_vote` to utilize group name mappings for filtered results.
- Updated YAML configuration to include new group name mappings for better result interpretation.
@alexandonian alexandonian requested a review from Copilot October 6, 2025 21:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the majority voting plots by adding group name mappings for cleaner visualization labels and adjusting plot parameters. The changes enable more readable display names for model runs in plots while maintaining the original internal naming conventions.

Key changes:

  • Add group name mappings configuration to translate internal run names to user-friendly display names
  • Adjust plot y-axis range and legend positioning for better visualization
  • Increment k_value by 1 in majority vote processing

Reviewed Changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.

File Description
bixbench/run_configuration/v1.5_paper_results.yaml Adds group name mappings for image comparison and refusal option comparison groups
bixbench/postprocessing.py Implements group name mapping logic and increments k_value
bixbench/plotting_utils.py Updates plot parameters including y-axis range, legend location, and baseline label logic
bixbench/models.py Adds group_name_mappings field to MajorityVoteConfig model

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -160,7 +160,7 @@ async def run_majority_vote(
return {}

# Get configuration values
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

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

The increment of k_value by 1 lacks explanation. This magic number operation should be documented with a comment explaining why the increment is necessary.

Suggested change
# Get configuration values
# Get configuration values
# Increment k_value by 1 to ensure the range in majority voting includes config.k_value itself.

Copilot uses AI. Check for mistakes.
Comment thread bixbench/plotting_utils.py
@alexandonian alexandonian merged commit 4931118 into main Oct 6, 2025
2 checks passed
@alexandonian alexandonian deleted the revisions branch October 6, 2025 21:54
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.

3 participants