Skip to content

Commit

Permalink
Allow for linear kernel for ARD in Python GP.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 589272278
  • Loading branch information
qiuyiz authored and Copybara-Service committed Dec 9, 2023
1 parent 097adc7 commit ec4c51c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vizier/_src/algorithms/designers/gp_bandit.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def from_problem(
) -> 'VizierGPBandit':
rng = jax.random.PRNGKey(seed or 0)
if problem.is_single_objective:
return cls(problem, rng=rng)
return cls(problem, rng=rng, linear_coef=1.0)
else:
num_objectives = len(
problem.metric_information.of_type(vz.MetricType.OBJECTIVE)
Expand All @@ -600,6 +600,7 @@ def _scalarized_ucb(
)
return cls(
problem,
linear_coef=1.0,
scoring_function_factory=scoring_fn_factory,
scoring_function_is_parallel=True,
use_trust_region=False,
Expand Down

0 comments on commit ec4c51c

Please sign in to comment.