Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions ax/adapter/transfer_learning/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,8 +788,10 @@ def transfer_learning_generator_specs_constructor(
model's input constructor.
fit_tracking_metrics: Whether to fit the generator on tracking metrics. Passed
to the `TransferLearningAdapter`.
additional_generator_kwargs: Additional kwargs to be passed
to the BoTorchGenerator
additional_generator_kwargs: Additional kwargs to be passed to each
BoTorchGenerator. When model selection is enabled, these kwargs must be
compatible with both the transfer learning model and the single-task
fallback.

Returns:
A tuple containing BOTL generator specs in case model selection is not enabled,
Expand Down Expand Up @@ -839,7 +841,10 @@ def transfer_learning_generator_specs_constructor(
]
if use_model_selection:
botl_specs.append(
GeneratorSpec(generator_enum=Generators.BOTORCH_MODULAR),
GeneratorSpec(
generator_enum=Generators.BOTORCH_MODULAR,
generator_kwargs=additional_generator_kwargs,
),
)
best_model_selector = SingleDiagnosticBestModelSelector(
diagnostic="Rank correlation",
Expand Down
6 changes: 3 additions & 3 deletions ax/analysis/plotly/surface/contour.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ def _prepare_plot(

fig = go.Figure(
data=go.Contour(
z=z_values,
x=z_grid.columns.values,
y=z_grid.index.values,
z=z_values.tolist(),
x=z_grid.columns.tolist(),
y=z_grid.index.tolist(),
colorscale=METRIC_CONTINUOUS_COLOR_SCALE,
showscale=True,
colorbar={
Expand Down
Loading