From 15779184419218670234353738088b6cb4679990 Mon Sep 17 00:00:00 2001 From: ST John Date: Wed, 13 Apr 2022 13:19:52 +0300 Subject: [PATCH] test_ADs for PeriodicTransform --- test/transform/periodic_transform.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/transform/periodic_transform.jl b/test/transform/periodic_transform.jl index 324cba907..716de5a86 100644 --- a/test/transform/periodic_transform.jl +++ b/test/transform/periodic_transform.jl @@ -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