We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc14a6f commit 71b8c2bCopy full SHA for 71b8c2b
1 file changed
baybe/surrogates/gaussian_process/components/kernel.py
@@ -123,7 +123,7 @@ class _MetaKernelFactory(KernelFactoryProtocol, ABC):
123
@abstractmethod
124
def __call__(
125
self, searchspace: SearchSpace, train_x: Tensor, train_y: Tensor
126
- ) -> Kernel: ...
+ ) -> Kernel | GPyTorchKernel: ...
127
128
129
@define
@@ -166,7 +166,7 @@ def _default_task_kernel_factory(self) -> KernelFactoryProtocol:
166
@override
167
168
169
- ) -> Kernel:
+ ) -> Kernel | GPyTorchKernel:
170
if searchspace.task_idx is None:
171
raise IncompatibleSearchSpaceError(
172
f"'{type(self).__name__}' can only be used with a searchspace that "
0 commit comments