mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
James' debugging of the EP/GP interface
It seems that the GP-EP algorithm works now.
This commit is contained in:
parent
eb04cbed63
commit
f941d629e6
3 changed files with 11 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue