60
60
get_pending_observation_features , # noqa F401
61
61
get_pending_observation_features_based_on_trial_status , # noqa F401
62
62
)
63
- from ax .exceptions .core import DataRequiredError , UnsupportedError , UserInputError
63
+ from ax .exceptions .core import DataRequiredError , UserInputError
64
64
from ax .modelbridge .transforms .base import Transform
65
65
from ax .modelbridge .transforms .utils import (
66
66
derelativize_optimization_config_with_raw_status_quo ,
@@ -690,7 +690,6 @@ def get_pareto_frontier_and_configs(
690
690
optimization_config : Optional [MultiObjectiveOptimizationConfig ] = None ,
691
691
arm_names : Optional [List [Optional [str ]]] = None ,
692
692
use_model_predictions : bool = True ,
693
- transform_outcomes_and_configs : Optional [bool ] = None ,
694
693
) -> Tuple [List [Observation ], Tensor , Tensor , Optional [Tensor ]]:
695
694
"""Helper that applies transforms and calls ``frontier_evaluator``.
696
695
@@ -712,11 +711,6 @@ def get_pareto_frontier_and_configs(
712
711
``observation_features`` to compute Pareto front. If ``False``,
713
712
will use ``observation_data`` directly to compute Pareto front, ignoring
714
713
``observation_features``.
715
- transform_outcomes_and_configs: Deprecated and must be ``False`` if provided.
716
- Previously, if ``True``, would transform the optimization
717
- config, observation features and observation data, before calling
718
- ``frontier_evaluator``, then will untransform all of the above before
719
- returning the observations.
720
714
721
715
Returns: Four-item tuple of:
722
716
- frontier_observations: Observations of points on the pareto frontier,
@@ -726,30 +720,6 @@ def get_pareto_frontier_and_configs(
726
720
- obj_t: m tensor of objective thresholds corresponding to Y, or None if no
727
721
objective thresholds used.
728
722
"""
729
- if transform_outcomes_and_configs is None :
730
- warnings .warn (
731
- "FYI: The default behavior of `get_pareto_frontier_and_configs` when "
732
- "`transform_outcomes_and_configs` is not specified has changed. Previously,"
733
- " the default was `transform_outcomes_and_configs=True`; now this argument "
734
- "is deprecated and behavior is as if "
735
- "`transform_outcomes_and_configs=False`. You did not specify "
736
- "`transform_outcomes_and_configs`, so this warning requires no action." ,
737
- stacklevel = 2 ,
738
- )
739
- elif transform_outcomes_and_configs :
740
- raise UnsupportedError (
741
- "`transform_outcomes_and_configs=True` is no longer supported, and the "
742
- "`transform_outcomes_and_configs` argument is deprecated. Please do not "
743
- "specify this argument."
744
- )
745
- else :
746
- warnings .warn (
747
- "You passed `transform_outcomes_and_configs=False`. Specifying "
748
- "`transform_outcomes_and_configs` at all is deprecated because `False` is "
749
- "now the only allowed behavior. In the future, this will become an error." ,
750
- DeprecationWarning ,
751
- stacklevel = 2 ,
752
- )
753
723
# Input validation
754
724
if use_model_predictions :
755
725
if observation_data is not None :
0 commit comments