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

Add concept of recoverable errors respected by Scheduler #3262

Closed

Conversation

danielcohenlive
Copy link

Summary:
The motivation is that some metrics are flaky and we don't want to fail the trial just because we encountered one exception fetching. Especially trials with period_of_new_data_after_trial_completion() > 0.

This alternative to implementing this on the metric is that the set of recoverable errors should be a scheduler option, and it's more a matter of scheduler use case than metric.

Reviewed By: Cesar-Cardoso

Differential Revision: D68273328

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

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

danielcohenlive pushed a commit to danielcohenlive/Ax-1 that referenced this pull request Jan 22, 2025
Summary:

The motivation is that some metrics are flaky and we don't want to fail the trial just because we encountered one exception fetching.  Especially trials with `period_of_new_data_after_trial_completion()` > 0.

This alternative to implementing this on the metric is that the set of recoverable errors should be a scheduler option, and it's more a matter of scheduler use case than metric.

Reviewed By: Cesar-Cardoso

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

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

@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2025

Codecov Report

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

Project coverage is 96.00%. Comparing base (369b487) to head (abc2381).

Files with missing lines Patch % Lines
ax/core/metric.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3262      +/-   ##
==========================================
- Coverage   96.00%   96.00%   -0.01%     
==========================================
  Files         512      512              
  Lines       51695    51720      +25     
==========================================
+ Hits        49632    49656      +24     
- Misses       2063     2064       +1     

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

Summary:

The motivation is that some metrics are flaky and we don't want to fail the trial just because we encountered one exception fetching.  Especially trials with `period_of_new_data_after_trial_completion()` > 0.

This alternative to implementing this on the metric is that the set of recoverable errors should be a scheduler option, and it's more a matter of scheduler use case than metric.

Reviewed By: Cesar-Cardoso

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4f63561.

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

Successfully merging this pull request may close these issues.

3 participants