mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-14 14:32:37 +02:00
[ssgplvm] change the default gamma interval
This commit is contained in:
parent
01b501e078
commit
6240f494f2
2 changed files with 2 additions and 3 deletions
|
|
@ -89,7 +89,6 @@ class GP(Model):
|
||||||
assert mean_function.output_dim == self.output_dim
|
assert mean_function.output_dim == self.output_dim
|
||||||
self.link_parameter(mean_function)
|
self.link_parameter(mean_function)
|
||||||
|
|
||||||
|
|
||||||
#find a sensible inference method
|
#find a sensible inference method
|
||||||
logger.info("initializing inference method")
|
logger.info("initializing inference method")
|
||||||
if inference_method is None:
|
if inference_method is None:
|
||||||
|
|
|
||||||
|
|
@ -176,11 +176,11 @@ class SpikeAndSlabPosterior(VariationalPosterior):
|
||||||
self.mean.fix(warning=False)
|
self.mean.fix(warning=False)
|
||||||
self.variance.fix(warning=False)
|
self.variance.fix(warning=False)
|
||||||
if group_spike:
|
if group_spike:
|
||||||
self.gamma_group = Param("binary_prob_group",binary_prob.mean(axis=0),Logistic(1e-6,1.-1e-6))
|
self.gamma_group = Param("binary_prob_group",binary_prob.mean(axis=0),Logistic(1e-10,1.-1e-10))
|
||||||
self.gamma = Param("binary_prob",binary_prob, __fixed__)
|
self.gamma = Param("binary_prob",binary_prob, __fixed__)
|
||||||
self.link_parameters(self.gamma_group,self.gamma)
|
self.link_parameters(self.gamma_group,self.gamma)
|
||||||
else:
|
else:
|
||||||
self.gamma = Param("binary_prob",binary_prob,Logistic(1e-6,1.-1e-6))
|
self.gamma = Param("binary_prob",binary_prob,Logistic(1e-10,1.-1e-10))
|
||||||
self.link_parameter(self.gamma)
|
self.link_parameter(self.gamma)
|
||||||
|
|
||||||
def propogate_val(self):
|
def propogate_val(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue