# tPredict

Predicts the situation of an element.

Based on the models generated by the classification components, the clustering components or the regression components, tPredict predicts the situation an element could fall into. tPredict uses a given classification, clustering or relationship model to analyze datasets incoming from its preceding component.

In local mode, Apache Spark 1.4.0, 1.5.0, 1.6.0, 2.0.0, 2.3.0, 2.4.0 and 3.0.1 are supported.

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

Depending on the Talend product you are using, this component can be used in one, some or all of the following Job frameworks:

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

  The component in this framework is available in all Talend Platform products with Big Data and in Talend Data Fabric.

* Spark Streaming: see [tPredict properties for Apache Spark Streaming](https://help.qlik.com/talend/en-US/components/7.3/machine-learning/tpredict-properties-for-apache-spark-streaming).

  This component is available in Talend Real Time Big Data Platform and Talend Data Fabric.

### In this section

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

**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)