# Code for joint Topic Models and User Behavior

**URL:** <https://discourse.edwardlib.org/t/code-for-joint-topic-models-and-user-behavior/59>\
**Category:** General\
**Created:** [March 23, 2017, 10:02pm UTC](https://discourse.edwardlib.org/t/code-for-joint-topic-models-and-user-behavior/59 "2017-03-23T22:02:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sander](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@Sander](https://discourse.edwardlib.org/u/Sander)\
**Post date:** [March 23, 2017, 10:02pm UTC](https://discourse.edwardlib.org/t/code-for-joint-topic-models-and-user-behavior/59/1 "2017-03-23T22:02:02Z")

</div>

Today I attended David’s lecture about  
Probabilistic Topic Models and User Behavior inToronto

> **[Blei\_User\_Behavior.pdf](https://www.cs.columbia.edu/~blei/talks/Blei_User_Behavior.pdf)**

  
He mentioned that people use his software to build machine learning models for  
joint Topic Models and User Behavior  
for example  
The New York Society library model  
And showed slide with reference to  

> **[blei-lab/edward](https://github.com/blei-lab/edward)**
>
> A probabilistic programming language in TensorFlow. Deep generative models, variational inference. - blei-lab/edward

  
I would try this code , but which code from Edwards  
has example to build model for joint Topic Models and User Behavior

May you pls share link to code example for joint Topic Models and User Behavior

Thank you very much in advance

---

<div class="post-metadata">

**Author:** ![dustin](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.edwardlib.org/dustin/32/134_2.png) [@dustin](https://discourse.edwardlib.org/u/dustin)\
**Post date:** [March 24, 2017, 12:47pm UTC](https://discourse.edwardlib.org/t/code-for-joint-topic-models-and-user-behavior/59/2 "2017-03-24T12:47:24Z")

</div>

I don’t think anyone has tried collaborative topic models in Edward yet. The algorithms are pretty involved and take some time to reproduce.

The original research was done several years ago (before Edward’s time). There’s open source code for them:

- Wang and Blei (2011): [https://github.com/blei-lab/ctr](https://github.com/blei-lab/ctr)
- Gopalan et al. (2014): [https://github.com/blei-lab/collabtm](https://github.com/blei-lab/collabtm)
