Skip to content

Commit

Permalink
sketch of how default kernel will change
Browse files Browse the repository at this point in the history
  • Loading branch information
R-M-Lee committed Aug 27, 2024
1 parent 3b75089 commit b6a78e2
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions bofire/data_models/surrogates/single_task_gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
BOTORCH_LENGTHCALE_PRIOR,
BOTORCH_NOISE_PRIOR,
BOTORCH_SCALE_PRIOR,
HVARFNER_LENGTHSCALE_PRIOR,
HVARFNER_NOISE_PRIOR,
MBO_LENGTHCALE_PRIOR,
MBO_NOISE_PRIOR,
MBO_OUTPUTSCALE_PRIOR,
Expand Down Expand Up @@ -99,16 +101,13 @@ class SingleTaskGPSurrogate(TrainableBotorchSurrogate):
type: Literal["SingleTaskGPSurrogate"] = "SingleTaskGPSurrogate"

kernel: AnyKernel = Field(
default_factory=lambda: ScaleKernel(
base_kernel=MaternKernel(
ard=True,
nu=2.5,
lengthscale_prior=BOTORCH_LENGTHCALE_PRIOR(),
),
outputscale_prior=BOTORCH_SCALE_PRIOR(),
default_factory=lambda: MaternKernel(
ard=True,
nu=2.5,
lengthscale_prior=HVARFNER_LENGTHSCALE_PRIOR(),
)
)
noise_prior: AnyPrior = Field(default_factory=lambda: BOTORCH_NOISE_PRIOR())
noise_prior: AnyPrior = Field(default_factory=lambda: HVARFNER_NOISE_PRIOR())
hyperconfig: Optional[SingleTaskGPHyperconfig] = Field(
default_factory=lambda: SingleTaskGPHyperconfig()
)
Expand Down

0 comments on commit b6a78e2

Please sign in to comment.