Skip to content
Open
Changes from 2 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
7 changes: 5 additions & 2 deletions test/transform/periodic_transform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
# Construct in the usual way.
k_eq_periodic = PeriodicKernel(; r=[sqrt(0.25)]) ∘ ScaleTransform(f)

# Construct using the peridic transform.
# Construct using the periodic transform.
k_eq_transform = SqExponentialKernel() ∘ PeriodicTransform(f)

@test kernelmatrix(k_eq_periodic, x) ≈ kernelmatrix(k_eq_transform, x)
# TODO - add interface_tests once #159 is merged.
end

@testset "AD" begin
test_ADs(x -> SEKernel() ∘ PeriodicTransform(exp(x[1])), [2.3])
end
end