# tModelEncoder

Performs featurization operations to transform data into the format expected by the model training components such as tLogisticRegressionModel or tKMeansModel.

tModelEncoder receives data from its preceding components, applies a wide range of feature processing algorithms to transform given columns of this data and sends the result to the model training component that follows to eventually train and create a predictive model.

In local mode, Apache Spark 2.4 and 3.0 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 [tModelEncoder properties for Apache Spark Batch](https://help.qlik.com/talend/en-US/components/7.3/machine-learning/tmodelencoder-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 [tModelEncoder properties for Apache Spark Streaming](https://help.qlik.com/talend/en-US/components/7.3/machine-learning/tmodelencoder-properties-for-apache-spark-streaming).

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

### In this section

* [tModelEncoder properties for Apache Spark Batch](https://help.qlik.com/talend/en-US/components/7.3/machine-learning/tmodelencoder-properties-for-apache-spark-batch)
* [tModelEncoder properties for Apache Spark Streaming](https://help.qlik.com/talend/en-US/components/7.3/machine-learning/tmodelencoder-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)

[Creating a classification model to filter spam](https://help.qlik.com/talend/en-US/components/7.3/machine-learning/classification-model)