Skip to content

Conversation

@shrutipatel31
Copy link
Contributor

Summary:
Adds support for displaying standard error (SEM) contour plots in addition to default mean contour plots. This will enable AxSweep to create both mean and SEM contour plots using Ax Analyses and enables parity with the axsweep's interact_contour_plotly function which showed both mean and standard error contours side-by-side.

Changes:

  • Added display parameter to ContourPlot with options "mean" (default) or "sem"
  • Updated title format to include display type: "{metric} (Mean) vs. x, y" or "{metric} (Standard Error) vs. x, y"
  • Updated _prepare_plot to select the appropriate column based on display parameter
  • Fixed docstring typo: "predected" → "predicted"
  • Added documentation for METRIC_NAME_sem column in DataFrame

Usage:

# Mean contour (default, same as before)
ContourPlot(x_parameter_name="x", y_parameter_name="y", metric_name="foo")

# Standard error contour
ContourPlot(x_parameter_name="x", y_parameter_name="y", metric_name="foo", display="sem")

Differential Revision:
D89636799

Privacy Context Container: L1307644

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Dec 22, 2025
@meta-codesync
Copy link

meta-codesync bot commented Dec 22, 2025

@shrutipatel31 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D89636799.

@codecov-commenter
Copy link

codecov-commenter commented Dec 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.54%. Comparing base (d26c5ba) to head (69fd5df).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4690      +/-   ##
==========================================
- Coverage   96.54%   96.54%   -0.01%     
==========================================
  Files         572      572              
  Lines       59970    59986      +16     
==========================================
+ Hits        57901    57915      +14     
- Misses       2069     2071       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

shrutipatel31 added a commit to shrutipatel31/Ax that referenced this pull request Dec 22, 2025
Summary:

Adds support for displaying standard error (SEM) contour plots in addition to default mean contour plots. This will enable AxSweep to create both mean and SEM contour plots using Ax Analyses and enables parity with the axsweep's `interact_contour_plotly` function which showed both mean and standard error contours side-by-side.

**Changes:**
- Added `display` parameter to `ContourPlot` with options `"mean"` (default) or `"sem"`
- Updated title format to include display type: `"{metric} (Mean) vs. x, y"` or `"{metric} (Standard Error) vs. x, y"`
- Updated `_prepare_plot` to select the appropriate column based on `display` parameter
- Fixed docstring typo: "predected" → "predicted"
- Added documentation for `METRIC_NAME_sem` column in DataFrame

**Usage:**
```python
# Mean contour (default, same as before)
ContourPlot(x_parameter_name="x", y_parameter_name="y", metric_name="foo")

# Standard error contour
ContourPlot(x_parameter_name="x", y_parameter_name="y", metric_name="foo", display="sem")
```

Differential Revision:
D89636799

Privacy Context Container: L1307644
Summary:

Adds support for displaying standard error (SEM) contour plots in addition to default mean contour plots. This will enable AxSweep to create both mean and SEM contour plots using Ax Analyses and enables parity with the axsweep's `interact_contour_plotly` function which showed both mean and standard error contours side-by-side.

**Changes:**
- Added `display` parameter to `ContourPlot` with options `"mean"` (default) or `"sem"`
- Updated title format to include display type: `"{metric} (Mean) vs. x, y"` or `"{metric} (Standard Error) vs. x, y"`
- Updated `_prepare_plot` to select the appropriate column based on `display` parameter
- Fixed docstring typo: "predected" → "predicted"
- Added documentation for `METRIC_NAME_sem` column in DataFrame

**Usage:**
```python
# Mean contour (default, same as before)
ContourPlot(x_parameter_name="x", y_parameter_name="y", metric_name="foo")

# Standard error contour
ContourPlot(x_parameter_name="x", y_parameter_name="y", metric_name="foo", display="sem")
```

Differential Revision:
D89636799

Privacy Context Container: L1307644
@meta-codesync
Copy link

meta-codesync bot commented Dec 22, 2025

This pull request has been merged in 185dc61.

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

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants