Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for linear kernel for ARD in Python GP. #1012

Merged
merged 1 commit into from
Dec 11, 2023
Merged
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
5 changes: 4 additions & 1 deletion vizier/_src/algorithms/designers/gp_bandit.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,10 @@ def from_problem(
cls, problem: vz.ProblemStatement, seed: Optional[int] = None
) -> 'VizierGPBandit':
rng = jax.random.PRNGKey(seed or 0)
# Linear coef is set to 1.0 as prior and uses VizierLinearGaussianProcess
# which uses a sum of Matern and linear but ARD still tunes its amplitude.
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 +602,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