File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ class HSGPPeriodic(Base):
446
446
447
447
with pm.Model() as model:
448
448
# Specify the covariance function, only for the 1-D case
449
- scale = pm.HalfNormal(10)
449
+ scale = pm.HalfNormal("scale", 10)
450
450
cov_func = pm.gp.cov.Periodic(1, period=1, ls=0.1)
451
451
452
452
# Specify the approximation with 25 basis vectors
@@ -535,8 +535,8 @@ def prior_linearized(self, Xs: TensorLike):
535
535
X = np.linspace(0, 10, 100)[:, None]
536
536
537
537
with pm.Model() as model:
538
- scale = pm.HalfNormal(10)
539
- cov_func = pm.gp.cov.Periodic(1, period=1, ls=ell )
538
+ scale = pm.HalfNormal("scale", 10)
539
+ cov_func = pm.gp.cov.Periodic(1, period=1.0 , ls=2.0 )
540
540
541
541
# m=200 means 200 basis vectors
542
542
gp = pm.gp.HSGPPeriodic(m=200, scale=scale, cov_func=cov_func)
You can’t perform that action at this time.
0 commit comments