liveBook · Manning

Latent Dirichlet allocation

Latent Dirichlet allocation is a generative probabilistic topic model representing documents as mixtures of latent topics and topics as distributions over words.

How 2 Manning books explain it

Natural Language Processing in Action, Second Edition

Latent Dirichlet allocation is a probabilistic topic-modeling technique that represents documents as mixtures of latent topics and topics as distributions over words.

How it is used
Creates interpretable topic vectors for topic analysis, with demonstrations in toxicity classification and potential use in semantic search and summarization.
How deep it goes
Explains document–topic mixtures and Dirichlet priors, then fits and evaluates a scikit-learn model without deriving its statistical algorithm.
Examples
Fits 16-topic and 32-topic models to toxic comments, inspects term allocations, and compares classifier performance.
What you can do after
Apply it via scikit-learn to build comment topic vectors, inspect their terms, and evaluate them as classifier features.

Read how Natural Language Processing in Action, Second Edition explains latent Dirichlet allocation →

Machine Learning Algorithms in Depth

Latent Dirichlet allocation is a generative probabilistic model that represents documents as mixtures of topics and topics as distributions over words.

How it is used
Uses LDA to discover shared topics and document-level topic proportions in text collections.
How deep it goes
Develops the bag-of-words model, latent variables, variational inference, online updates, and a from-scratch implementation.
Examples
Applies LDA to 20 Newsgroups and visualizes ELBO progress and inferred topics as word clouds.
What you can do after
Build it from scratch with variational Bayes to infer and inspect topics in a document collection.

Read how Machine Learning Algorithms in Depth explains latent Dirichlet allocation →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.