mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 19:42:39 +02:00
Example of sde_Matern covarince function is added, along with other small changes.
State-space example is slightly modified. Imports are corrected accordingly.
This commit is contained in:
parent
5b381af40d
commit
03d4096fe8
3 changed files with 72 additions and 2 deletions
|
|
@ -1,10 +1,20 @@
|
|||
import GPy
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
from GPy.models.state_space import StateSpace
|
||||
|
||||
X = np.linspace(0, 10, 2000)[:, None]
|
||||
Y = np.sin(X) + np.random.randn(*X.shape)*0.1
|
||||
|
||||
kernel = GPy.kern.Matern32(X.shape[1])
|
||||
m = StateSpace(X,Y, kernel)
|
||||
m = GPy.models.StateSpace(X,Y, kernel)
|
||||
|
||||
m.optimize()
|
||||
|
||||
print m
|
||||
|
||||
kernel1 = GPy.kern.Matern32(X.shape[1])
|
||||
m1 = GPy.models.GPRegression(X,Y, kernel1)
|
||||
|
||||
m1.optimize()
|
||||
|
||||
print m1
|
||||
Loading…
Add table
Add a link
Reference in a new issue