# tPredictCluster

Availability-note[Deprecated](https://help.talend.com/r/en-US/Cloud/labels-on-talend-help-center/availability-deprecated)

This content is deprecated.

Information noteImportant: This component is deprecated since the 6.2 General Availability release and removed from Talend Studio 8.0 R2024-05 onwards. Talend recommends to use the tPredict component.

Predicts the cluster of an element.

Based on the clustering model generated by a model training component such as a K-Means component, tPredictCluster predicts to which cluster an element belongs. tPredictCluster uses a given clustering model to analyze datasets incoming from its preceding component in order to group the elements into different clusters.

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

This component is not shipped with your Talend Studio by default. You need to install it using the Feature Manager. For more information, see [Installing features using the Feature Manager](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/install-features-to-talend-studio).

### In this section

* [tPredictCluster properties for Apache Spark Batch](https://help.qlik.com/talend/en-US/components/8.0/machine-learning/tpredictcluster-properties-for-apache-spark-batch)
* [tPredictCluster properties for Apache Spark Streaming (deprecated)](https://help.qlik.com/talend/en-US/components/8.0/machine-learning/tpredictcluster-properties-for-apache-spark-streaming)