{"action":"created","issue":{"url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/63","repository_url":"https://api.github.com/repos/bmabey/pyLDAvis","labels_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/63/comments","events_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/63/events","html_url":"https://github.com/bmabey/pyLDAvis/pull/63","id":154516855,"number":63,"title":"Support of the Hierarchical Dirichlet Process from Gensim.","user":{"login":"bloody76","id":1499894,"avatar_url":"https://avatars.githubusercontent.com/u/1499894?v=3","gravatar_id":"","url":"https://api.github.com/users/bloody76","html_url":"https://github.com/bloody76","followers_url":"https://api.github.com/users/bloody76/followers","following_url":"https://api.github.com/users/bloody76/following{/other_user}","gists_url":"https://api.github.com/users/bloody76/gists{/gist_id}","starred_url":"https://api.github.com/users/bloody76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloody76/subscriptions","organizations_url":"https://api.github.com/users/bloody76/orgs","repos_url":"https://api.github.com/users/bloody76/repos","events_url":"https://api.github.com/users/bloody76/events{/privacy}","received_events_url":"https://api.github.com/users/bloody76/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-05-12T15:48:32Z","updated_at":"2016-05-15T01:49:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bmabey/pyLDAvis/pulls/63","html_url":"https://github.com/bmabey/pyLDAvis/pull/63","diff_url":"https://github.com/bmabey/pyLDAvis/pull/63.diff","patch_url":"https://github.com/bmabey/pyLDAvis/pull/63.patch"},"body":"Hi,\r\n\r\nI was playing with HDP models and I wanted to visualise them with pyLDAvis. Unfortunately it wasn't natively supported, so I made the few fixes to make it.\r\n\r\nI am simply looking for attributes `lda_alpha` and `lda_beta` as they are specific to the HDP model. I also changed the `__num_dist_rows__` function because even if the matrix was normalized, the `doc_topic_dists` made the asserts crying (maybe NaN values ?). I didn't look too much into it but this fix is working.\r\n\r\nI am not sure if the `lda_beta` parameter is exactly the same as `state.get_lambda()` parameter but it needed the topic-term distribution so I though it was ok...\r\n\r\nI am using it and it's working. Tell me if the PR seems right to you ! :)"},"comment":{"url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/comments/219261377","html_url":"https://github.com/bmabey/pyLDAvis/pull/63#issuecomment-219261377","issue_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/63","id":219261377,"user":{"login":"bmabey","id":1837,"avatar_url":"https://avatars.githubusercontent.com/u/1837?v=3","gravatar_id":"","url":"https://api.github.com/users/bmabey","html_url":"https://github.com/bmabey","followers_url":"https://api.github.com/users/bmabey/followers","following_url":"https://api.github.com/users/bmabey/following{/other_user}","gists_url":"https://api.github.com/users/bmabey/gists{/gist_id}","starred_url":"https://api.github.com/users/bmabey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmabey/subscriptions","organizations_url":"https://api.github.com/users/bmabey/orgs","repos_url":"https://api.github.com/users/bmabey/repos","events_url":"https://api.github.com/users/bmabey/events{/privacy}","received_events_url":"https://api.github.com/users/bmabey/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T01:49:43Z","updated_at":"2016-05-15T01:49:43Z","body":"Yeah, that visualization doesn't look good... Do all of the gensim HDP ones look like that?\r\n\r\nBTW, could you rerun the notebook so the cache takes effect and we don't have as much in the cell output (i.e. cell 2)."}}