Skip to content

[MRG + 1] Add how lda's LDA differs from sckit-learn's LDA #5553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 27, 2016
Merged

[MRG + 1] Add how lda's LDA differs from sckit-learn's LDA #5553

merged 1 commit into from
Dec 27, 2016

Conversation

ariddell
Copy link
Contributor

Closes #5529

@GaelVaroquaux
Copy link
Member

Can you be a bit more explicit on the fact that scikit-learn also has an LDA. The second sentence should be something like "scikit-learn has a Latent Dirichlet Allocation. It differs from packages... because..."

@ariddell
Copy link
Contributor Author

Will the :class:sklearn.decomposition.LatentDirichletAllocation`` render correctly?

@amueller
Copy link
Member

yeah it should. lgtm. thanks :)

@amueller amueller changed the title Add how lda's LDA differs from sckit-learn's LDA [MRG + 1] Add how lda's LDA differs from sckit-learn's LDA Oct 23, 2015
@raghavrv
Copy link
Member

raghavrv commented Dec 2, 2016

@ariddell Could you update master and push please?

@raghavrv raghavrv added this to the 0.19 milestone Dec 2, 2016
Copy link
Member

@raghavrv raghavrv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending minor addressing...

- `lda <https://github.com/ariddell/lda/>`_: Fast implementation of Latent
Dirichlet Allocation in Cython.
- `lda <https://github.com/ariddell/lda/>`_: Fast implementation of latent
Dirichlet allocation in Cython using Gibbs sampling. Whereas scikit-learn's
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whereas --> While

- `lda <https://github.com/ariddell/lda/>`_: Fast implementation of Latent
Dirichlet Allocation in Cython.
- `lda <https://github.com/ariddell/lda/>`_: Fast implementation of latent
Dirichlet allocation in Cython using Gibbs sampling. Whereas scikit-learn's
Copy link
Member

@raghavrv raghavrv Dec 26, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually could you restructure as -

 - `lda <https://github.com/ariddell/lda/>`_: Fast implementation of latent
    Dirichlet allocation in Cython which uses `Gibbs sampling
    <https://en.wikipedia.org/wiki/Gibbs_sampling>`_ to sample from the true
    posterior distribution. (scikit-learn's :class:`sklearn.decomposition.LatentDirichletAllocation` implementation uses
    `variational inference <https://en.wikipedia.org/wiki/Variational_Bayesian_methods>`_ to sample from
    a tractable approximation of a topic model's posterior distribution.)

@ariddell
Copy link
Contributor Author

Restructured as suggested.

@jnothman
Copy link
Member

LGTM

@jnothman jnothman merged commit 0f52d38 into scikit-learn:master Dec 27, 2016
@ariddell ariddell deleted the patch-4 branch December 29, 2016 14:49
sergeyf pushed a commit to sergeyf/scikit-learn that referenced this pull request Feb 28, 2017
@Przemo10 Przemo10 mentioned this pull request Mar 17, 2017
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants