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

[GENERAL SUPPORT]: Managing Objective Function Evaluation Failures in Ax for MOO #2576

Closed
1 task done
Fa20 opened this issue Jul 11, 2024 · 3 comments
Closed
1 task done
Assignees
Labels
question Further information is requested

Comments

@Fa20
Copy link

Fa20 commented Jul 11, 2024

Question

I'm using Ax to find the optimal solutions for a MOO problem. However, some suggested parameter values cause simulation failures, making it impossible to calculate the objective function. How can we avoid this in Ax? Specifically, how can we abandon these failed trials and obtain new suggestions? Can you provide an example of how to implement this?.

I did check and did not find ax_client.log_trial_failed(trial_index) (#2574)

Please provide any relevant code snippet if applicable.

No response

Code of Conduct

  • I agree to follow this Ax's Code of Conduct
@Fa20 Fa20 added the question Further information is requested label Jul 11, 2024
@Abrikosoff
Copy link

Question

I'm using Ax to find the optimal solutions for a MOO problem. However, some suggested parameter values cause simulation failures, making it impossible to calculate the objective function. How can we avoid this in Ax? Specifically, how can we abandon these failed trials and obtain new suggestions? Can you provide an example of how to implement this?.

I did check and did not find ax_client.log_trial_failed(trial_index) (#2574)

Please provide any relevant code snippet if applicable.

No response

Code of Conduct

* [x]  I agree to follow this Ax's Code of Conduct

I think the correct syntax for logging a trial as failed is ax_client.log_trial_failure(trial_index=trial_index). As to the difference between abandoning and logging trials (as failures), see this comment by Lena

@mpolson64
Copy link
Contributor

Thanks so much @Abrikosoff -- this was indeed a mistake on my part. Please use log_trial_failure as defined here https://github.com/facebook/Ax/blob/main/ax/service/ax_client.py?fbclid=IwZXh0bgNhZW0CMTEAAR0-WRsxfT-7qlc-mKuNOLYftPFO7dB_y1uY75HHuLj8BTxXEWw8EQ979WE_aem_UAXI11RP1Nbkw-OG8XQxIw#L829

@Fa20 does this answer your question?

@mpolson64 mpolson64 self-assigned this Jul 11, 2024
@mgarrard
Copy link
Contributor

Closing due to inactivity, please feel free to reopen :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants