Skip to content

Plot the MetricFrame's Confidence Intervals #1487

Closed

Description

@taharallouche

Description

This is a follow-up to #999.

Now that the MetricFrame class can compute the confidence intervals, we need to implement a function that would include their associated error-bars into the plot of the metrics.

Note

I found this plotting function that seems to handle confidence intervals, but it's not well documented (the user-guide's plotting section discusses only leveraging pandas' .plot).

Looking at how it is used in these tests, it doesn't seem to be compatible with the MetricFrame's built-in ci feature.

Activity

  1. added
    enhancement
    on Jan 25, 2025
  2. Anish8800 commented on Dec 20, 2025

    @Anish8800
    Contributor

    Thanks for opening this — I’d be interested in working on it.

    Before starting, I’d like to confirm the intended design:
    • Should CI plotting be integrated into MetricFrame.plot() (e.g., via a flag)?
    • Or should it be a separate plotting helper that consumes the CI output?

    Once the direction is clear, I can propose an implementation with tests.

  3. DresdenGman commented on Jul 6, 2026

    @DresdenGman
    Contributor

    Hi, is this still open for contribution? It looks like there hasn't been follow-up on the earlier discussion for a while.

    If the issue is available, I'd be happy to take a stab at integrating MetricFrame's built-in bootstrap confidence intervals into plot_metric_frame, while keeping the existing conf_intervals parameter as the explicit override path.

    Happy to align on the preferred design direction first.

  4. Anish8800 commented on Jul 6, 2026

    @Anish8800
    Contributor

    Hi! Thanks for reaching out. Feel free to go ahead with it. Looking forward to seeing your implementation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions