Skip to content

Commit

Permalink
Add tests for new composite kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed May 16, 2024
1 parent 1f432e1 commit 7f3d57c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_iterations.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# TODO: This file needs to be refactored.
"""Tests various configurations for a small number of iterations."""


import pytest

from baybe.acquisition.base import AcquisitionFunction
from baybe.kernels.basic import MaternKernel
from baybe.kernels.composite import ScaleKernel
from baybe.kernels.composite import AdditiveKernel, ProductKernel, ScaleKernel
from baybe.priors import (
GammaPrior,
HalfCauchyPrior,
Expand Down Expand Up @@ -140,7 +139,12 @@
for prior in valid_priors
]

valid_kernels = valid_base_kernels + valid_scale_kernels
valid_composite_kernels = [
AdditiveKernel([MaternKernel(1.5), MaternKernel(2.5)]),
ProductKernel([MaternKernel(1.5), MaternKernel(2.5)]),
]

valid_kernels = valid_base_kernels + valid_scale_kernels + valid_composite_kernels

test_targets = [
["Target_max"],
Expand Down

0 comments on commit 7f3d57c

Please sign in to comment.