This source directory contains library routines that provide alternative ways of computing generalised second order Stirling numbers used in working with Pitman-Yor and Dirichlet processes (PYP and DP). Included is library routines for posterior sampling on the discount and concentration parameters of the PYP/DP, and some simple demo scripts.
System used for Pitman-Yor processing with topic models, to allow easy scaling to gigabytes of text. Tested on a few versions on Ubuntu Linux and MacOSX. Requires the GSL (GNU Scientific Library) for polygamma functions.
Matching paper with some of the theory at http://arxiv.org/abs/1007.0296
- Changes to previous version:
Bug fix for samplea() using getval(). Change to samplea() interface allowing mixed dimensions.
No one has posted any comments yet. Perhaps you'd like to be the first?
Leave a comment
You must be logged in to post comments.