This commit is contained in:
mzwiessele 2018-02-22 23:46:48 +01:00
parent c1b70fd2d1
commit 13179b9275

View file

@ -4,6 +4,7 @@ import matplotlib.pyplot as plt
import GPy.models.state_space_model as SS_model import GPy.models.state_space_model as SS_model
def state_space_example():
X = np.linspace(0, 10, 2000)[:, None] X = np.linspace(0, 10, 2000)[:, None]
Y = np.sin(X) + np.random.randn(*X.shape)*0.1 Y = np.sin(X) + np.random.randn(*X.shape)*0.1
@ -24,3 +25,5 @@ m2.optimize(optimizer='bfgs',messages=True)
print(m2) print(m2)
return m1, m2