# Training the model using Random Forest

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

This content is deprecated.

## Procedure

1. Double-click tRandomForestModel to open its Component view.

   ![](https://help.qlik.com/talend/en-US/components/7.3/Resources/images/use_case-trandomforestmodel11.png)
2. From the Label column list, select the column that provides the classes to be used for classification. In this scenario, it is *label*, which contains two class names: *spam* for junk messages and *ham* for normal messages.
3. From the Features column list, select the column that provides the feature vectors to be analyzed. In this scenario, it is *features\_vect*, which combines all features.
4. Select the Save the model on file system check box and in the HDFS folder field that is displayed, enter the directory you want to use to store the generated model.
5. In the Number of trees in the forest field, enter the number of decision trees you want tRandomForestModel to build. You need to try different numbers to run the current Job to create the classification model several times; after comparing the evaluation results of every model created on each run, you can decide the number you need to use. In this scenario, put *20*.

   An evaluation Job will be presented in one of the following sections.
6. Leave the other parameters as is.