lmcinnes / lmcinnes/enstop

Integration with pyLDAvis

Open
#4 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
113
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Dear Leland,
I tried to use pyLDAvis with enstop, following same API as the sklearn topic models. I did essentially what is shown here https://nbviewer.jupyter.org/github/bmabey/pyLDAvis/blob/master/notebooks/sklearn.ipynb and replaced scikit-learn's LatentDirichletAllocation with enstop's EnsembleTopics.
I got this error:
```
ValidationError:
* Not all rows (distributions) in doc_topic_dists sum to 1.
```
Can you help to sort it out?
Thank you in advance

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the pyLDAvis sklearn notebook linked in the issue and the EnsembleTopics output passed to pyLDAvis. Investigate why doc_topic_dists rows do not sum to 1, then verify the integration accepts the resulting distributions without ValidationError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.