# tKMeansModel

Analyzes incoming datasets based on applying the K-Means algorithm.

This component analyzes feature vectors usually pre-processed by tModelEncoder to generate a clustering model that is used by tPredict to cluster given elements.

It generates a clustering model out of this analysis and writes this model either in memory or in a given file system.

In local mode, Apache Spark 1.6.0 and later versions are supported.

For more technologies supported by Talend, see [Talend components](https://help.qlik.com/talend/r/en-US/7.3/components/machine-learning).

### In this section

* [tKMeansModel properties for Apache Spark Batch](https://help.qlik.com/talend/en-US/components/7.3/machine-learning/tkmeansmodel-properties-for-apache-spark-batch)

**Related concepts**

[Modeling the accident-prone areas in a city](https://help.qlik.com/talend/en-US/components/7.3/machine-learning/tmodelencoder-tkmeansmodel-ts3configuration-modeling-accident-prone-areas-in-city-spark-batch-component-in-this)