mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 02:24:17 +02:00
TEST: Modifying constraints of the standard periodic kernel in order to pass tests on different platforms.
This commit is contained in:
parent
463c489cdf
commit
d8f0443e2d
1 changed files with 5 additions and 5 deletions
|
|
@ -110,12 +110,12 @@ class StateSpaceKernelsTests(np.testing.TestCase):
|
|||
X.shape = (X.shape[0],1); Y.shape = (Y.shape[0],1)
|
||||
|
||||
ss_kernel = GPy.kern.sde_StdPeriodic(1,active_dims=[0,])
|
||||
ss_kernel.lengthscale.constrain_bounded(0.25, 1000)
|
||||
ss_kernel.period.constrain_bounded(0.15, 100)
|
||||
ss_kernel.lengthscale.constrain_bounded(0.27, 1000)
|
||||
ss_kernel.period.constrain_bounded(0.17, 100)
|
||||
|
||||
gp_kernel = GPy.kern.StdPeriodic(1,active_dims=[0,])
|
||||
gp_kernel.lengthscale.constrain_bounded(0.25, 1000)
|
||||
gp_kernel.period.constrain_bounded(0.15, 100)
|
||||
gp_kernel.lengthscale.constrain_bounded(0.27, 1000)
|
||||
gp_kernel.period.constrain_bounded(0.17, 100)
|
||||
|
||||
self.run_for_model(X, Y, ss_kernel, check_gradients=True,
|
||||
predict_X=X,
|
||||
|
|
@ -350,4 +350,4 @@ if __name__ == "__main__":
|
|||
#tt.test_kernel_addition()
|
||||
#tt.test_kernel_multiplication()
|
||||
#tt.test_forecast()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue