kzhai / PyNPB

Non-parametric Bayesian in Python, including Indian buffet process (IBP), hierarchical Dirichlet process (HDP).
73 stars 32 forks source link

Model parameters for HDP/vb.py are never initialized nor defined #2

Open dtrckd opened 8 years ago

dtrckd commented 8 years ago

The parameters of the HDP variationnal inference, self._alpha, self._gamma and other are not defined or initialized or I am missing something here ?

File "vb.py", line 218, in velb log_likelihood[0] = self._K * numpy.log(self._alpha / self._K) + (self._alpha / self._K - 1.) * numpy.sum(psi_tau[0, :] - psi_sum_tau) AttributeError: 'VariationalBayes' object has no attribute '_alpha'

kzhai commented 8 years ago

Hi, The source code for VB HDP is not finished, and I think that file was staged by accident. Sorry about that. Please ignore that file and I will update later. Best, Ke

dtrckd commented 8 years ago

ok, thanks for your answer and release. d