Skip to content

Commit e6e5656

Browse files
committed
update for TemporalGPs 0.6.7
1 parent 4eeeca0 commit e6e5656

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/interp/gp_fast/low_level.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Optional Inputs:
1010
function construct_gp_prior(; smooth_factor::Real = 1, σ²::Real = 0.5, l::Real = 5.8e-5)
1111
σ² *= smooth_factor
1212
l *= smooth_factor
13-
k = σ² * transform(Matern52Kernel(), 1 / l)
13+
#k = σ² * transform(Matern52Kernel(), 1 / l)
14+
k = σ² * Matern52Kernel() ∘ ScaleTransform(1 / l)
1415
f_naive = GP(k)
1516
#f = to_sde(f_naive) # if develop issues with StaticArrays could revert to this
1617
f = to_sde(f_naive, SArrayStorage(Float64))
@@ -29,7 +30,8 @@ function construct_gp_prior(; smooth_factor_σ²::Real = 1, smooth_factor_l::Rea
2930
σ² *= smooth_factor_σ² * smooth_factor
3031
l *= smooth_factor_l * smooth_factor
3132
#k = σ² * transform(Matern52Kernel(), 1 / l)
32-
k = σ² * with_lengthscale(Matern52Kernel(), 1 / l)
33+
#k = σ² * with_lengthscale(Matern52Kernel(), 1 / l)
34+
k = σ² * Matern52Kernel() ScaleTransform(1 / l)
3335
f_naive = GP(k)
3436
#f = to_sde(f_naive) # if develop issues with StaticArrays could revert to this
3537
f = to_sde(f_naive, SArrayStorage(Float64))

0 commit comments

Comments
 (0)