James' debugging of the EP/GP interface

It seems that the GP-EP algorithm works now.
This commit is contained in:
Ricardo Andrade 2013-02-01 13:45:55 +00:00
parent eb04cbed63
commit f941d629e6
3 changed files with 11 additions and 8 deletions

View file

@ -4,7 +4,7 @@
"""
Simple Gaussian Processes classification 1D
Probit likelihood
probit likelihood
"""
import pylab as pb
import numpy as np
@ -26,7 +26,7 @@ Y = np.hstack([np.ones(N/2),np.repeat(-1,N/2)])[:,None]
kernel = GPy.kern.rbf(1)
# Define likelihood
distribution = GPy.likelihoods.likelihood_functions.Probit()
distribution = GPy.likelihoods.likelihood_functions.probit()
likelihood_object = GPy.likelihoods.EP(Y,distribution)
# Model definition