Skip to content

Commit b129cb4

Browse files
authored
Enable periodic kernel in example (#390)
1 parent cf311bd commit b129cb4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

examples/1-mauna-loa/script.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ plotdata()
100100
# We define a couple of helper functions to simplify the kernel construction:
101101

102102
SE(θ) = θ.σ^2 * with_lengthscale(SqExponentialKernel(), θ.ℓ)
103-
## PeriodicKernel is broken, see https://github.com/JuliaGaussianProcesses/KernelFunctions.jl/issues/389
104-
##Per(θ) = with_lengthscale(PeriodicKernel(; r=[θ.ℓ/2]), θ.p) # NOTE- discrepancy with GaussianProcesses.jl
105-
Per(θ) = with_lengthscale(SqExponentialKernel(), θ.ℓ) PeriodicTransform(1 / θ.p)
103+
Per(θ) = with_lengthscale(PeriodicKernel(; r=./ 2]), θ.p) # NOTE- discrepancy with GaussianProcesses.jl
106104
RQ(θ) = θ.σ^2 * with_lengthscale(RationalQuadraticKernel(; α=θ.α), θ.ℓ)
107105
#md nothing #hide
108106

0 commit comments

Comments
 (0)