コード例 #1
0
ファイル: Model.py プロジェクト: TerryLew/BinLOTlib
 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
0
ファイル: Model.py プロジェクト: joshrule/LOTlib
 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))
コード例 #3
0
ファイル: Hypothesis.py プロジェクト: wrongu/LOTlib
 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))