# Module: tf.contrib.factorization

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/factorization/__init__.py) |

Ops and modules related to factorization.

## Classes

[`class GMM`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/factorization/GMM): An estimator for GMM clustering.

[`class GmmAlgorithm`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/factorization/GmmAlgorithm): Tensorflow Gaussian mixture model clustering class.

[`class KMeans`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/factorization/KMeans): Creates the graph for k-means clustering.

[`class KMeansClustering`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/factorization/KMeansClustering): An Estimator for K-Means clustering.

[`class WALSMatrixFactorization`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/factorization/WALSMatrixFactorization): An Estimator for Weighted Matrix Factorization, using the WALS method.

[`class WALSModel`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/factorization/WALSModel): A model for Weighted Alternating Least Squares matrix factorization.

## Functions

[`gmm(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/factorization/gmm): Creates the graph for Gaussian mixture model (GMM) clustering.

## Other Members

- `COSINE_DISTANCE = 'cosine'`
- `KMEANS_PLUS_PLUS_INIT = 'kmeans_plus_plus'`
- `RANDOM_INIT = 'random'`
- `SQUARED_EUCLIDEAN_DISTANCE = 'squared_euclidean'`