Skip to content

Commit

Permalink
Merge pull request #112 from optimas-org/fix_ax_issue
Browse files Browse the repository at this point in the history
Fix issue with latest Ax release
  • Loading branch information
AngelFP authored Aug 18, 2023
2 parents e2b17e6 + fe5929c commit 35ef109
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion optimas/generators/ax/developer/multitask.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@
from ax.core.optimization_config import OptimizationConfig
from ax.core.objective import Objective as AxObjective
from ax.runners import SyntheticRunner
from ax.modelbridge.factory import get_sobol, get_MTGP
from ax.modelbridge.factory import get_sobol
from ax.modelbridge.torch import TorchModelBridge
from ax.core.observation import ObservationFeatures
from ax.core.generator_run import GeneratorRun
from ax.storage.json_store.save import save_experiment
from ax.storage.metric_registry import register_metric
try:
from ax.modelbridge.factory import get_MTGP
except ImportError:
# For Ax >= 0.3.4
from ax.modelbridge.factory import get_MTGP_LEGACY as get_MTGP

from optimas.generators.ax.base import AxGenerator
from optimas.core import (TrialParameter, VaryingParameter, Objective,
Expand Down

0 comments on commit 35ef109

Please sign in to comment.