本文整理汇总了Python中LOTlib.Hypotheses.LOTHypothesis.LOTHypothesis.compute_prior方法的典型用法代码示例。如果您正苦于以下问题:Python LOTHypothesis.compute_prior方法的具体用法?Python LOTHypothesis.compute_prior怎么用?Python LOTHypothesis.compute_prior使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LOTlib.Hypotheses.LOTHypothesis.LOTHypothesis
的用法示例。
在下文中一共展示了LOTHypothesis.compute_prior方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: compute_prior
# 需要导入模块: from LOTlib.Hypotheses.LOTHypothesis import LOTHypothesis [as 别名]
# 或者: from LOTlib.Hypotheses.LOTHypothesis.LOTHypothesis import compute_prior [as 别名]
def compute_prior(self):
# Add together the LOT prior and the constant prior, here just a gaussian
return LOTHypothesis.compute_prior(self) +\
sum(map(lambda x: normlogpdf(x,0.0,self.constant_sd), self.parameters))
示例2: compute_prior
# 需要导入模块: from LOTlib.Hypotheses.LOTHypothesis import LOTHypothesis [as 别名]
# 或者: from LOTlib.Hypotheses.LOTHypothesis.LOTHypothesis import compute_prior [as 别名]
def compute_prior(self):
# Add together the structural prior and the constant prior
return LOTHypothesis.compute_prior(self) +\
sum(map(lambda x: normlogpdf(x,0.0,self.constant_sd), self.CONSTANT_VALUES))