コード例 #1
0
 def update_exp_lambdaGl(self, l):
     ''' Update expectation lambdaGl. '''
     self.exp_lambdaGl[l] = gamma_expectation(self.alphaGl_s[l],
                                              self.betaGl_s[l])
     self.exp_loglambdaGl[l] = gamma_expectation_log(
         self.alphaGl_s[l], self.betaGl_s[l])
コード例 #2
0
 def update_exp_lambdaFk(self, k):
     ''' Update expectation lambdaFk. '''
     self.exp_lambdaFk[k] = gamma_expectation(self.alphaFk_s[k],
                                              self.betaFk_s[k])
     self.exp_loglambdaFk[k] = gamma_expectation_log(
         self.alphaFk_s[k], self.betaFk_s[k])
コード例 #3
0
 def update_exp_tau(self):
     self.exptau = gamma_expectation(self.alpha_s,self.beta_s)
     self.explogtau = gamma_expectation_log(self.alpha_s,self.beta_s)
コード例 #4
0
 def update_exp_tau(self):
     ''' Update expectation tau. '''
     self.exp_tau = gamma_expectation(self.alpha_s, self.beta_s)
     self.exp_logtau = gamma_expectation_log(self.alpha_s, self.beta_s)
コード例 #5
0
 def update_exp_tau(self):
     self.exptau = gamma_expectation(self.alpha_s,self.beta_s)
     self.explogtau = gamma_expectation_log(self.alpha_s,self.beta_s)