Skip to content

asaparov/hdp

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Documentation and code examples are available at https://asaparov.org/docs/hdp. The repository is located at https://github.com/asaparov/hdp.

This repository implements data structures to represent Dirichlet processes and hierarchical Dirichlet processes (see hdp.h for an overview of these concepts). In addition, this repository provides a Markov chain Monte Carlo sampler to perform inference in mcmc.h.

Dependencies

To use the code, simply download the files into a folder named "hdp". Add this folder to the include path for the compiler, for example by using the -I flag.

This library depends on core and math. The code makes use of C++11 and is regularly tested with gcc 11 but I have previously compiled it with gcc 4.8, clang 4.0, and Microsoft Visual C++ 14.0 (2015). The code is intended to be platform-independent, so please create an issue if there are any compilation bugs.

Examples

There is an example in the documentation for mcmc.h, as well as a test program in mcmc.cpp which can be built using make hdp_mcmc.

About

Code to work with Dirichlet processes and hierarchical Dirichlet processes and perform inference using MCMC.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published