Closed esantorella closed 1 week ago
This pull request was exported from Phabricator. Differential Revision: D65890910
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.68%. Comparing base (
e20c48e
) to head (27568e0
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request has been merged in facebook/Ax@709fe44adf675c10bf3424bb2b12430fdbb0aa21.
Summary: Context:
get_soo_config_and_outcome_names
andget_moo_opt_config_and_outcome_names
both create anOptimizationConfig
, creating metric names such as "objective_0" and "constraint_slack_0". By separating out the logic for constructing objective and constraint names, this can be used more widely for problems that use different names for metrics.This PR:
get_soo_config_and_outcome_names
toget_soo_opt_config
, and makes it require outcome names rather than returning them.get_moo_opt_config_and_outcome_names
get_soo_opt_config
andget_moo_opt_config
, to increase code reuse.Reviewed By: saitcakmak
Differential Revision: D65890910