Skip to content

Commit 0c76b7a

Browse files
st--Crown421
authored andcommitted
update script
1 parent 12ee8ac commit 0c76b7a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/train-kernel-parameters/script.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ plot!(x_test, sinc; lab="true function")
3232
# To train the kernel parameters via ForwardDiff.jl
3333
# we need to create a function creating a kernel from an array
3434

35-
kernelcall(θ) = transform(
36-
exp(θ[1]) * SqExponentialKernel(),# + exp(θ[2]) * Matern32Kernel(),
37-
exp(θ[3]),
38-
)
35+
kernelcall(θ) = (exp(θ[1]) * SqExponentialKernel() + exp(θ[2]) * Matern32Kernel()) ScaleTransform(exp(θ[3]))
3936

4037
# From theory we know the prediction for a test set x given
4138
# the kernel parameters and normalization constant

0 commit comments

Comments
 (0)