mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-05 01:32:40 +02:00
[SSGPLVM] numerical stability
This commit is contained in:
parent
5c82fe39b9
commit
0f37cc721b
3 changed files with 7 additions and 5 deletions
|
|
@ -37,7 +37,7 @@ class SpikeAndSlabPrior(VariationalPrior):
|
|||
def __init__(self, pi, variance = 1.0, name='SpikeAndSlabPrior', **kw):
|
||||
super(VariationalPrior, self).__init__(name=name, **kw)
|
||||
assert variance==1.0, "Not Implemented!"
|
||||
self.pi = Param('pi', pi, Logistic(1e-10,1-1e-10))
|
||||
self.pi = Param('pi', pi, Logistic(1e-10,1.-1e-10))
|
||||
self.variance = Param('variance',variance)
|
||||
self.add_parameters(self.pi)
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ class SpikeAndSlabPosterior(VariationalPosterior):
|
|||
binary_prob : the probability of the distribution on the slab part.
|
||||
"""
|
||||
super(SpikeAndSlabPosterior, self).__init__(means, variances, name)
|
||||
self.gamma = Param("binary_prob",binary_prob, Logistic(1e-10,1-1e-10))
|
||||
self.gamma = Param("binary_prob",binary_prob, Logistic(1e-10,1.-1e-10))
|
||||
self.add_parameter(self.gamma)
|
||||
|
||||
def plot(self, *args):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue