def __init__(self, means, variances, binary_prob, group_spike=False, sharedX=False, name='<STR_LIT>'):
super(SpikeAndSlabPosterior, self).__init__(means, variances, name)<EOL>self.group_spike = group_spike<EOL>self.sharedX = sharedX<EOL>if sharedX:<EOL><INDENT>self.mean.fix(warning=False)<EOL>self.variance.fix(warning=False)<EOL><DEDENT>if group_spike:<EOL><INDENT>self.gamma_group = Param("<STR_LIT>",binary_prob.mean(axis=<NUM_LIT:0>),Logistic(<NUM_LIT>,<NUM_LIT:1.>-<NUM_LIT>))<EOL>self.gamma = Param("<STR_LIT>",binary_prob, __fixed__)<EOL>self.link_parameters(self.gamma_group,self.gamma)<EOL><DEDENT>else:<EOL><INDENT>self.gamma = Param("<STR_LIT>",binary_prob,Logistic(<NUM_LIT>,<NUM_LIT:1.>-<NUM_LIT>))<EOL>self.link_parameter(self.gamma)<EOL><DEDENT>
binary_prob : the probability of the distribution on the slab part.