4040from baybe .surrogates .gaussian_process .presets import (
4141 GaussianProcessPreset ,
4242)
43- from baybe .surrogates .gaussian_process .presets .baybe import (
44- BayBEFitCriterionFactory ,
45- BayBEKernelFactory ,
46- BayBELikelihoodFactory ,
47- BayBEMeanFactory ,
43+ from baybe .surrogates .gaussian_process .presets .hvarfner import (
44+ FIT_CRITERION_FACTORY ,
45+ KERNEL_FACTORY ,
46+ LIKELIHOOD_FACTORY ,
47+ MEAN_FACTORY ,
4848)
4949from baybe .utils .boolean import strtobool
5050from baybe .utils .conversion import to_string
@@ -115,7 +115,7 @@ def _mark_custom_kernel(
115115 value : Kernel | KernelFactoryProtocol , self : GaussianProcessSurrogate
116116) -> Kernel | KernelFactoryProtocol :
117117 """Mark the surrogate as using a custom kernel (for deprecation purposes)."""
118- if type (value ) is not BayBEKernelFactory :
118+ if type (value ) is not type ( KERNEL_FACTORY ) :
119119 self ._custom_kernel = True
120120
121121 return value
@@ -152,7 +152,7 @@ class GaussianProcessSurrogate(Surrogate):
152152 Converter (_mark_custom_kernel , takes_self = True ), # type: ignore[call-overload]
153153 partial (to_component_factory , component_type = GPComponentType .KERNEL ),
154154 ),
155- factory = BayBEKernelFactory ,
155+ default = KERNEL_FACTORY ,
156156 validator = is_callable (),
157157 )
158158 """The factory used to create the kernel for the Gaussian process.
@@ -165,7 +165,7 @@ class GaussianProcessSurrogate(Surrogate):
165165
166166 mean_factory : MeanFactoryProtocol = field (
167167 alias = "mean_or_factory" ,
168- factory = BayBEMeanFactory ,
168+ default = MEAN_FACTORY ,
169169 converter = partial (to_component_factory , component_type = GPComponentType .MEAN ), # type: ignore[misc]
170170 validator = is_callable (),
171171 )
@@ -178,7 +178,7 @@ class GaussianProcessSurrogate(Surrogate):
178178
179179 likelihood_factory : LikelihoodFactoryProtocol = field (
180180 alias = "likelihood_or_factory" ,
181- factory = BayBELikelihoodFactory ,
181+ default = LIKELIHOOD_FACTORY ,
182182 converter = partial ( # type: ignore[misc]
183183 to_component_factory , component_type = GPComponentType .LIKELIHOOD
184184 ),
@@ -193,7 +193,7 @@ class GaussianProcessSurrogate(Surrogate):
193193
194194 fit_criterion_factory : FitCriterionFactoryProtocol = field (
195195 alias = "fit_criterion_or_factory" ,
196- factory = BayBEFitCriterionFactory ,
196+ default = FIT_CRITERION_FACTORY ,
197197 converter = partial ( # type: ignore[misc]
198198 to_component_factory , component_type = GPComponentType .CRITERION
199199 ),
0 commit comments