mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-04 01:02:39 +02:00
very weird merge conflict, including in files that I did not change
This commit is contained in:
commit
601175de2d
73 changed files with 2234 additions and 1567 deletions
|
|
@ -21,7 +21,7 @@ class Poisson(Likelihood):
|
|||
"""
|
||||
def __init__(self, gp_link=None):
|
||||
if gp_link is None:
|
||||
gp_link = link_functions.Log_ex_1()
|
||||
gp_link = link_functions.Log()
|
||||
|
||||
super(Poisson, self).__init__(gp_link, name='Poisson')
|
||||
|
||||
|
|
@ -134,7 +134,19 @@ class Poisson(Likelihood):
|
|||
d3lik_dlink3 = 2*y/(link_f)**3
|
||||
return d3lik_dlink3
|
||||
|
||||
def samples(self, gp):
|
||||
def conditional_mean(self,gp):
|
||||
"""
|
||||
The mean of the random variable conditioned on one value of the GP
|
||||
"""
|
||||
return self.gp_link.transf(gp)
|
||||
|
||||
def conditional_variance(self,gp):
|
||||
"""
|
||||
The variance of the random variable conditioned on one value of the GP
|
||||
"""
|
||||
return self.gp_link.transf(gp)
|
||||
|
||||
def samples(self, gp, Y_metadata=None):
|
||||
"""
|
||||
Returns a set of samples of observations based on a given value of the latent variable.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue