def calc_evidence( self, Data, SS, LP ):   
    E_logpV = self.E_logpV()
    E_logqV = self.E_logqV()
    
    E_logpPi = self.E_logpPi(SS)
    if SS.hasELBOTerms():
      E_logqPi = SS.getELBOTerm('ElogqPiConst') \
                  + SS.getELBOTerm('ElogqPiUnused') \
                  + np.sum(SS.getELBOTerm('ElogqPiActive'))
      E_logpZ = np.sum(SS.getELBOTerm('ElogpZ'))
      E_logfactorialZ = SS.getELBOTerm('logFactData') \
                        - np.sum(SS.getELBOTerm('logFactZ'))
    else:
      E_logqPi = self.E_logqPi(LP)
      E_logpZ = np.sum(self.E_logpZ(Data, LP))

      logFactData, logFactZ = self.E_logfactorialZ(Data, LP)
      E_logfactorialZ = logFactData - np.sum(logFactZ)

    if SS.hasAmpFactor():
      E_logqPi *= SS.ampF
      E_logpZ *= SS.ampF

    elbo = E_logpPi - E_logqPi 
    elbo += E_logpZ + E_logfactorialZ
    elbo += E_logpV - E_logqV
    return elbo
Consults the authenticator and grant for HTTP request parameters and
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/allocmodel/admix/HDPHardMult.py/HDPHardMult.calc_evidence--crossover with--dataset/ETHPy150Open ryanhorn/tyoiOAuth2/tyoi/oauth2/__init__.py/AccessTokenRequest.build_url_request