changed to 'update_gradients_q_variational'

This commit is contained in:
Zhenwen Dai 2014-02-24 11:33:58 +00:00
parent c2750ae719
commit f311bfdf17
3 changed files with 7 additions and 8 deletions

View file

@ -63,7 +63,7 @@ class NormalPosterior(VariationalPosterior):
from ...plotting.matplot_dep import variational_plots
return variational_plots.plot(self,*args)
class SpikeAndSlab(VariationalPosterior):
class SpikeAndSlabPosterior(VariationalPosterior):
'''
The SpikeAndSlab distribution for variational approximations.
'''
@ -71,7 +71,7 @@ class SpikeAndSlab(VariationalPosterior):
"""
binary_prob : the probability of the distribution on the slab part.
"""
super(SpikeAndSlab, self).__init__(means, variances, name)
super(SpikeAndSlabPosterior, self).__init__(means, variances, name)
self.gamma = Param("binary_prob",binary_prob,)
self.add_parameter(self.gamma)