mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
Changes in plotting functions.
This commit is contained in:
parent
f7d2fc6ca4
commit
5e2baf1919
5 changed files with 71 additions and 31 deletions
|
|
@ -42,7 +42,7 @@ class Gaussian(likelihood):
|
|||
"""
|
||||
mean = mu*self._std + self._mean
|
||||
true_var = (var + self._variance)*self._std**2
|
||||
_5pc = mean + mean - 2.*np.sqrt(var)
|
||||
_5pc = mean + - 2.*np.sqrt(var)
|
||||
_95pc = mean + 2.*np.sqrt(var)
|
||||
return mean, _5pc, _95pc
|
||||
|
||||
|
|
|
|||
|
|
@ -52,8 +52,8 @@ class probit(likelihood_function):
|
|||
mu = mu.flatten()
|
||||
var = var.flatten()
|
||||
mean = stats.norm.cdf(mu/np.sqrt(1+var))
|
||||
p_05 = np.zeros([mu.size])
|
||||
p_95 = np.ones([mu.size])
|
||||
p_05 = np.zeros(mu.shape)#np.zeros([mu.size])
|
||||
p_95 = np.zeros(mu.shape)#np.ones([mu.size])
|
||||
return mean, p_05, p_95
|
||||
|
||||
class Poisson(likelihood_function):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue