--- layout: global title: Clustering - ML displayTitle: ML - Clustering --- In this section, we introduce the pipeline API for [clustering in mllib](mllib-clustering.html). **Table of Contents** * This will become a table of contents (this text will be scraped). {:toc} ## Latent Dirichlet allocation (LDA) `LDA` is implemented as an `Estimator` that supports both `EMLDAOptimizer` and `OnlineLDAOptimizer`, and generates a `LDAModel` as the base models. Expert users may cast a `LDAModel` generated by `EMLDAOptimizer` to a `DistributedLDAModel` if needed.