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

Relax type hints on compute() #2662

Closed
wants to merge 2 commits into from

Conversation

mpolson64
Copy link
Contributor

Summary: Scheduler does not have a GenerationStrategy, it has a GenerationStrategyInterface. Relaxing this type hint is important for creating Scheduler.compute_analyses(...)

Differential Revision: D61339432

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

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

@facebook-github-bot
Copy link
Contributor

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

mpolson64 added a commit to mpolson64/Ax that referenced this pull request Aug 15, 2024
Summary:
Pull Request resolved: facebook#2662

Scheduler does not have a GenerationStrategy, it has a GenerationStrategyInterface. Relaxing this type hint is important for creating Scheduler.compute_analyses(...)

Differential Revision: D61339432
mpolson64 and others added 2 commits August 20, 2024 10:40
Summary:
Add compute_result and a new __str__ method to Analysis.

The former is useful for computing many analysis at once and handling the exceptions post-compute (as we intend to do on the Scheduler) and the __str__ method is just useful for generating messages in the ExceptionE

Differential Revision: D61337928
Summary:
Pull Request resolved: facebook#2662

Scheduler does not have a GenerationStrategy, it has a GenerationStrategyInterface. Relaxing this type hint is important for creating Scheduler.compute_analyses(...)

Reviewed By: Cesar-Cardoso

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

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

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 64.70588% with 12 lines in your changes missing coverage. Please review.

Project coverage is 95.26%. Comparing base (40c8417) to head (52959da).

Files Patch % Lines
ax/analysis/analysis.py 60.00% 6 Missing ⚠️
ax/utils/common/result.py 60.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2662      +/-   ##
==========================================
- Coverage   95.29%   95.26%   -0.03%     
==========================================
  Files         495      495              
  Lines       47773    47802      +29     
==========================================
+ Hits        45523    45540      +17     
- Misses       2250     2262      +12     

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in b59af0d.

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