kzhai / pynpb Goto Github PK
View Code? Open in Web Editor NEWNon-parametric Bayesian in Python, including Indian buffet process (IBP), hierarchical Dirichlet process (HDP).
Non-parametric Bayesian in Python, including Indian buffet process (IBP), hierarchical Dirichlet process (HDP).
Hi,
I'am experiencing your NP prior, in order to try it in some relational model.
When running ugs HDP over a NIPS 2012 text corpus, the log-likelihood decrease with iterations. Did you observe some convergence or a likelihood improvement in your experiments ?
Output that I get:
sampling in progress 10%
total number of topics 3, log-likelihood is -608665.500427
sampling in progress 20%
total number of topics 4, log-likelihood is -611818.654787
sampling in progress 30%
total number of topics 4, log-likelihood is -618855.827824
sampling in progress 40%
total number of topics 4, log-likelihood is -621922.608209
sampling in progress 50%
total number of topics 5, log-likelihood is -627783.435882
sampling in progress 60%
total number of topics 5, log-likelihood is -631405.448569
Is there an implementation of collapsed gibbs sampling in hierarchical dirichlet process?
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.