def objFunc_v(v, sumLogPi, nDoc, gamma, alpha0):
  # log prior
  logpV = (alpha0 - 1) * np.sum(np.log(1.-v))
  # log likelihood
  beta = v2beta(v)
  logpPi_const = gammaln(gamma) - np.sum(gammaln(gamma*beta))
  logpPi = np.inner(gamma*beta - 1, sumLogPi)
  return -1.0 * (nDoc*logpPi_const + logpPi + logpV)
Test list function
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/allocmodel/admix/OptimizerForHDPPE.py/objFunc_v--crossover with--dataset/ETHPy150Open softlayer/jumpgate/tests/jumpgate-tests/network/test_network.py/TestNetworksV2.test_on_get_response_networksv2_list