{"action":"closed","number":63,"pull_request":{"url":"https://api.github.com/repos/bmabey/pyLDAvis/pulls/63","id":69860772,"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","issue_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/63","number":63,"state":"closed","locked":false,"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},"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 ! :)","created_at":"2016-05-12T15:48:32Z","updated_at":"2016-05-18T15:21:44Z","closed_at":"2016-05-18T15:21:44Z","merged_at":"2016-05-18T15:21:44Z","merge_commit_sha":"c228ab00cb36aa1c609b81bae39aa238f042a6a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bmabey/pyLDAvis/pulls/63/commits","review_comments_url":"https://api.github.com/repos/bmabey/pyLDAvis/pulls/63/comments","review_comment_url":"https://api.github.com/repos/bmabey/pyLDAvis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/63/comments","statuses_url":"https://api.github.com/repos/bmabey/pyLDAvis/statuses/aae916a43d275a0dfc95b59a45dc48d85121f00e","head":{"label":"bloody76:master","ref":"master","sha":"aae916a43d275a0dfc95b59a45dc48d85121f00e","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},"repo":{"id":58152632,"name":"pyLDAvis","full_name":"bloody76/pyLDAvis","owner":{"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},"private":false,"html_url":"https://github.com/bloody76/pyLDAvis","description":"Python library for interactive topic model visualization. Port of the R LDAvis package.","fork":true,"url":"https://api.github.com/repos/bloody76/pyLDAvis","forks_url":"https://api.github.com/repos/bloody76/pyLDAvis/forks","keys_url":"https://api.github.com/repos/bloody76/pyLDAvis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bloody76/pyLDAvis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bloody76/pyLDAvis/teams","hooks_url":"https://api.github.com/repos/bloody76/pyLDAvis/hooks","issue_events_url":"https://api.github.com/repos/bloody76/pyLDAvis/issues/events{/number}","events_url":"https://api.github.com/repos/bloody76/pyLDAvis/events","assignees_url":"https://api.github.com/repos/bloody76/pyLDAvis/assignees{/user}","branches_url":"https://api.github.com/repos/bloody76/pyLDAvis/branches{/branch}","tags_url":"https://api.github.com/repos/bloody76/pyLDAvis/tags","blobs_url":"https://api.github.com/repos/bloody76/pyLDAvis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bloody76/pyLDAvis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bloody76/pyLDAvis/git/refs{/sha}","trees_url":"https://api.github.com/repos/bloody76/pyLDAvis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bloody76/pyLDAvis/statuses/{sha}","languages_url":"https://api.github.com/repos/bloody76/pyLDAvis/languages","stargazers_url":"https://api.github.com/repos/bloody76/pyLDAvis/stargazers","contributors_url":"https://api.github.com/repos/bloody76/pyLDAvis/contributors","subscribers_url":"https://api.github.com/repos/bloody76/pyLDAvis/subscribers","subscription_url":"https://api.github.com/repos/bloody76/pyLDAvis/subscription","commits_url":"https://api.github.com/repos/bloody76/pyLDAvis/commits{/sha}","git_commits_url":"https://api.github.com/repos/bloody76/pyLDAvis/git/commits{/sha}","comments_url":"https://api.github.com/repos/bloody76/pyLDAvis/comments{/number}","issue_comment_url":"https://api.github.com/repos/bloody76/pyLDAvis/issues/comments{/number}","contents_url":"https://api.github.com/repos/bloody76/pyLDAvis/contents/{+path}","compare_url":"https://api.github.com/repos/bloody76/pyLDAvis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bloody76/pyLDAvis/merges","archive_url":"https://api.github.com/repos/bloody76/pyLDAvis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bloody76/pyLDAvis/downloads","issues_url":"https://api.github.com/repos/bloody76/pyLDAvis/issues{/number}","pulls_url":"https://api.github.com/repos/bloody76/pyLDAvis/pulls{/number}","milestones_url":"https://api.github.com/repos/bloody76/pyLDAvis/milestones{/number}","notifications_url":"https://api.github.com/repos/bloody76/pyLDAvis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bloody76/pyLDAvis/labels{/name}","releases_url":"https://api.github.com/repos/bloody76/pyLDAvis/releases{/id}","deployments_url":"https://api.github.com/repos/bloody76/pyLDAvis/deployments","created_at":"2016-05-05T18:39:11Z","updated_at":"2016-05-05T18:39:11Z","pushed_at":"2016-05-18T15:13:12Z","git_url":"git://github.com/bloody76/pyLDAvis.git","ssh_url":"git@github.com:bloody76/pyLDAvis.git","clone_url":"https://github.com/bloody76/pyLDAvis.git","svn_url":"https://github.com/bloody76/pyLDAvis","homepage":"","size":2513,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bmabey:master","ref":"master","sha":"9c226615e3295a71934f21f42fa6df8705d0ee13","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},"repo":{"id":33696562,"name":"pyLDAvis","full_name":"bmabey/pyLDAvis","owner":{"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},"private":false,"html_url":"https://github.com/bmabey/pyLDAvis","description":"Python library for interactive topic model visualization. Port of the R LDAvis package.","fork":false,"url":"https://api.github.com/repos/bmabey/pyLDAvis","forks_url":"https://api.github.com/repos/bmabey/pyLDAvis/forks","keys_url":"https://api.github.com/repos/bmabey/pyLDAvis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bmabey/pyLDAvis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bmabey/pyLDAvis/teams","hooks_url":"https://api.github.com/repos/bmabey/pyLDAvis/hooks","issue_events_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/events{/number}","events_url":"https://api.github.com/repos/bmabey/pyLDAvis/events","assignees_url":"https://api.github.com/repos/bmabey/pyLDAvis/assignees{/user}","branches_url":"https://api.github.com/repos/bmabey/pyLDAvis/branches{/branch}","tags_url":"https://api.github.com/repos/bmabey/pyLDAvis/tags","blobs_url":"https://api.github.com/repos/bmabey/pyLDAvis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bmabey/pyLDAvis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bmabey/pyLDAvis/git/refs{/sha}","trees_url":"https://api.github.com/repos/bmabey/pyLDAvis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bmabey/pyLDAvis/statuses/{sha}","languages_url":"https://api.github.com/repos/bmabey/pyLDAvis/languages","stargazers_url":"https://api.github.com/repos/bmabey/pyLDAvis/stargazers","contributors_url":"https://api.github.com/repos/bmabey/pyLDAvis/contributors","subscribers_url":"https://api.github.com/repos/bmabey/pyLDAvis/subscribers","subscription_url":"https://api.github.com/repos/bmabey/pyLDAvis/subscription","commits_url":"https://api.github.com/repos/bmabey/pyLDAvis/commits{/sha}","git_commits_url":"https://api.github.com/repos/bmabey/pyLDAvis/git/commits{/sha}","comments_url":"https://api.github.com/repos/bmabey/pyLDAvis/comments{/number}","issue_comment_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/comments{/number}","contents_url":"https://api.github.com/repos/bmabey/pyLDAvis/contents/{+path}","compare_url":"https://api.github.com/repos/bmabey/pyLDAvis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bmabey/pyLDAvis/merges","archive_url":"https://api.github.com/repos/bmabey/pyLDAvis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bmabey/pyLDAvis/downloads","issues_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues{/number}","pulls_url":"https://api.github.com/repos/bmabey/pyLDAvis/pulls{/number}","milestones_url":"https://api.github.com/repos/bmabey/pyLDAvis/milestones{/number}","notifications_url":"https://api.github.com/repos/bmabey/pyLDAvis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bmabey/pyLDAvis/labels{/name}","releases_url":"https://api.github.com/repos/bmabey/pyLDAvis/releases{/id}","deployments_url":"https://api.github.com/repos/bmabey/pyLDAvis/deployments","created_at":"2015-04-09T22:48:03Z","updated_at":"2016-05-18T14:21:33Z","pushed_at":"2016-05-18T15:21:44Z","git_url":"git://github.com/bmabey/pyLDAvis.git","ssh_url":"git@github.com:bmabey/pyLDAvis.git","clone_url":"https://github.com/bmabey/pyLDAvis.git","svn_url":"https://github.com/bmabey/pyLDAvis","homepage":"","size":2587,"stargazers_count":259,"watchers_count":259,"language":"Jupyter Notebook","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":18,"forks":61,"open_issues":18,"watchers":259,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bmabey/pyLDAvis/pulls/63"},"html":{"href":"https://github.com/bmabey/pyLDAvis/pull/63"},"issue":{"href":"https://api.github.com/repos/bmabey/pyLDAvis/issues/63"},"comments":{"href":"https://api.github.com/repos/bmabey/pyLDAvis/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/bmabey/pyLDAvis/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/bmabey/pyLDAvis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bmabey/pyLDAvis/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/bmabey/pyLDAvis/statuses/aae916a43d275a0dfc95b59a45dc48d85121f00e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":28,"review_comments":2,"commits":2,"additions":155,"deletions":245,"changed_files":7}}