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 utility methods to Analysis #2663

Closed
wants to merge 1 commit into from

Conversation

mpolson64
Copy link
Contributor

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

@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: D61337928

@facebook-github-bot
Copy link
Contributor

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

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

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#2663

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

Reviewed By: Cesar-Cardoso

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

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

@codecov-commenter
Copy link

Codecov Report

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

Project coverage is 95.26%. Comparing base (40c8417) to head (8cef82e).

Files Patch % Lines
ax/analysis/analysis.py 57.14% 6 Missing ⚠️
ax/utils/common/result.py 60.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2663      +/-   ##
==========================================
- 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 eeee6f4.

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