mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-04 01:02:39 +02:00
Fixing bernoulli likelihood for Laplace, fixing Zep for EP, and starting working on quadrature limits
This commit is contained in:
parent
6b6938bd11
commit
5b4abf4c34
8 changed files with 70 additions and 39 deletions
|
|
@ -28,7 +28,7 @@ class Poisson(Likelihood):
|
|||
"""
|
||||
the expected value of y given a value of f
|
||||
"""
|
||||
return self.gp_link.transf(gp)
|
||||
return self.gp_link.transf(f)
|
||||
|
||||
def pdf_link(self, link_f, y, Y_metadata=None):
|
||||
"""
|
||||
|
|
@ -46,7 +46,8 @@ class Poisson(Likelihood):
|
|||
:rtype: float
|
||||
"""
|
||||
assert np.atleast_1d(link_f).shape == np.atleast_1d(y).shape
|
||||
return np.prod(stats.poisson.pmf(y,link_f))
|
||||
return np.exp(self.logpdf_link(link_f, y, Y_metadata))
|
||||
# return np.prod(stats.poisson.pmf(y,link_f))
|
||||
|
||||
def logpdf_link(self, link_f, y, Y_metadata=None):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue