{"action":"closed","issue":{"url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/94","repository_url":"https://api.github.com/repos/bmabey/pyLDAvis","labels_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/94/comments","events_url":"https://api.github.com/repos/bmabey/pyLDAvis/issues/94/events","html_url":"https://github.com/bmabey/pyLDAvis/issues/94","id":234296926,"number":94,"title":"pyLDAvis ValidationError: Not all rows (distributions) in doc_topic_dists sum to 1","user":{"login":"imranshaikmuma","id":24683611,"avatar_url":"https://avatars1.githubusercontent.com/u/24683611?v=3","gravatar_id":"","url":"https://api.github.com/users/imranshaikmuma","html_url":"https://github.com/imranshaikmuma","followers_url":"https://api.github.com/users/imranshaikmuma/followers","following_url":"https://api.github.com/users/imranshaikmuma/following{/other_user}","gists_url":"https://api.github.com/users/imranshaikmuma/gists{/gist_id}","starred_url":"https://api.github.com/users/imranshaikmuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imranshaikmuma/subscriptions","organizations_url":"https://api.github.com/users/imranshaikmuma/orgs","repos_url":"https://api.github.com/users/imranshaikmuma/repos","events_url":"https://api.github.com/users/imranshaikmuma/events{/privacy}","received_events_url":"https://api.github.com/users/imranshaikmuma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-07T18:12:16Z","updated_at":"2017-06-07T19:42:31Z","closed_at":"2017-06-07T19:42:31Z","body":"i am getting the below error when trying to visualize HDP model trained on gensim\r\n\r\n**_**_---------------------------------------------------------------------------\r\nValidationError Traceback (most recent call last)\r\nin ()\r\n----> 1 vis_data_hdp = gensimvis.prepare(hdpmodel, corpus, dictionary)\r\n2 #pyLDAvis.display(vis_data_hdp)\r\n\r\nC:\\Anaconda2\\lib\\site-packages\\pyLDAvis\\gensim.pyc in prepare(topic_model, corpus, dictionary, doc_topic_dist, **kwargs)\r\n110 \"\"\"\r\n111 opts = fp.merge(_extract_data(topic_model, corpus, dictionary, doc_topic_dist), kwargs)\r\n--> 112 return vis_prepare(**opts)\r\n\r\nC:\\Anaconda2\\lib\\site-packages\\pyLDAvis_prepare.pyc in prepare(topic_term_dists, doc_topic_dists, doc_lengths, vocab, term_frequency, R, lambda_step, mds, n_jobs, plot_opts, sort_topics)\r\n372 doc_lengths = _series_with_name(doc_lengths, 'doc_length')\r\n373 vocab = _series_with_name(vocab, 'vocab')\r\n--> 374 _input_validate(topic_term_dists, doc_topic_dists, doc_lengths, vocab, term_frequency)\r\n375 R = min(R, len(vocab))\r\n376\r\n\r\nC:\\Anaconda2\\lib\\site-packages\\pyLDAvis_prepare.pyc in _input_validate(*args)\r\n63 res = _input_check(*args)\r\n64 if res:\r\n---> 65 raise ValidationError('\\n' + '\\n'.join([' * ' + s for s in res]))\r\n66\r\n67\r\nValidationError:\r\n\r\nNot all rows (distributions) in doc_topic_dists sum to 1._**\r\nTo train hdp model i have used the following syntax:\r\nhdpmodel = models.hdpmodel.HdpModel(corpus, dictionary)_**\r\n\r\nto visualize i have used the following syntax:\r\nvis_data_hdp = gensimvis.prepare(hdpmodel, corpus, dictionary)\r\npyLDAvis.display(vis_data_hdp)\r\n\r\n\r\ncorpus looks like this:\r\n[[(0, 1), (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1), (9, 1), (10, 1), (11, 2), (12, 1), (13, 2), (14, 1), (15, 1), (16, 1), (17, 1), (18, 1), (19, 1), (20, 1), (21, 1), (22, 1), (23, 1), (24, 1), (25, 1), (26, 1), (27, 1), (28, 1), (29, 1), (30, 1), (31, 1), (32, 1), (33, 4), (34, 1), (35, 1), (36, 1), (37, 1), (38, 1), (39, 2), (40, 1), (41, 2), (42, 1), (43, 2), (44, 1), (45, 1), (46, 1), (47, 3), (48, 1), (49, 1), (50, 2), (51, 1), (52, 1), (53, 1), (54, 1), (55, 1), (56, 1), (57, 1), (58, 1), (59, 1), (60, 1), (61, 1), (62, 1), (63, 1), (64, 1), (65, 1)]\r\n\r\ndictionary looks like this:\r\n[u'', u'dacteur', u'reallocations', u'advcompliance', u'resolveboth............"}}
{"actor":{"display_login":"imranshaikmuma"}}