Hierarchical Dirichlet process in pymc

Is it possible to implement hierarchical Dirichlet process topic model in pymc? Has anyone here tried it?

You can certainly write down the model, but inference is usually tricky to handle. I dont have an example as well…

Thanks! I guess I’ll implement it outside pymc then…

Just a quick note to say that implementing outside of pymc still doesnt mean it can be accurately inference, but there are ways to find one of the mode using VI. You can try extending https://docs.pymc.io/notebooks/lda-advi-aevb.html. I think I saw someone implemented a hierarchical topic model and inference using a Gibbs like optimizer

1 Like