mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-11 15:15:15 +02:00
ssrbf bug fix
This commit is contained in:
parent
7f7b0da7b9
commit
2724e7d476
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ class SpikeAndSlabPosterior(VariationalPosterior):
|
|||
def gamma_probabilities(self):
|
||||
prob = np.zeros_like(param_to_array(self.gamma))
|
||||
prob[self.gamma>-710] = 1./(1.+np.exp(-self.gamma[self.gamma>-710]))
|
||||
prob1 = np.zeros_like(param_to_array(self.gamma))
|
||||
prob1 = -np.zeros_like(param_to_array(self.gamma))
|
||||
prob1[self.gamma<710] = 1./(1.+np.exp(self.gamma[self.gamma<710]))
|
||||
return prob, prob1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue