Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ergonomics around early stopping #3446

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mpolson64
Copy link
Contributor

Summary: As discussed in Ax/Botorch sync. mark_trial_early_stopped signuture is brought in line with other mark_trial_STATUS methods and BaseTrial now validates that data must be present on a trial when marking it early stopped. This Exception from BaseTrial is a ValueError to stay in line with convention in that module, but is wrapped in an Ax UnsupportedError in Client where we expect exceptions to be Ax classes.

Reviewed By: lena-kashtelyan

Differential Revision: D70397779

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 3, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70397779

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70397779

Summary:

As discussed in Ax/Botorch sync. mark_trial_early_stopped signuture is brought in line with other mark_trial_STATUS methods and BaseTrial now validates that data must be present on a trial when marking it early stopped. This Exception from BaseTrial is a ValueError to stay in line with convention in that module, but is wrapped in an Ax UnsupportedError in Client where we expect exceptions to be Ax classes.

Reviewed By: lena-kashtelyan

Differential Revision: D70397779
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70397779

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.

Project coverage is 96.00%. Comparing base (5f8fe19) to head (8d94b24).

Files with missing lines Patch % Lines
ax/core/base_trial.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3446      +/-   ##
==========================================
- Coverage   96.00%   96.00%   -0.01%     
==========================================
  Files         539      539              
  Lines       52933    52945      +12     
==========================================
+ Hits        50819    50829      +10     
- Misses       2114     2116       +2     

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants