Git Product home page Git Product logo

pynpb's People

Contributors

kzhai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pynpb's Issues

Likelihood decrease when fitting HDP with gibbs sampling (ugs.py)

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

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

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.