> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Trainer Object (ITrainer Interface)

> Trainer object (ITrainer interface) in the ABBYY FineReader Engine API — trains a classifier on a categorized data set using configurable TrainingParams and ValidationParams.

This object is used for training the classifier on the basis of a categorized data set.

## Properties

| Name             | Type                                                                                                                                                                                                                                    | Description                                                                                                                                                                        |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| TrainingParams   | [TrainingParams](/fine-reader/engine/api-reference/classification-related-objects/trainingparams), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties)     | The parameters of training. This property lets you choose the classifier type and the training priorities: whether to aim for high precision, high recall, or balance both scores. |
| ValidationParams | [ValidationParams](/fine-reader/engine/api-reference/classification-related-objects/validationparams), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties) | The parameters of model validation. This property lets you specify if k-fold cross-validation should be performed and what settings should be used.                                |

## Methods

| Name                                                                                                     | Description                                  |
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| [TrainModel](/fine-reader/engine/api-reference/classification-related-objects/trainer/trainmodel-method) | Trains the classifier on the input data set. |

## Related objects

<img src="https://mintcdn.com/abbyy/i-EfCQVmseNiPQcp/images/fine-reader/engine/trainer.gif?s=ffc2060b4b49b0067266ff75666d68aa" alt="Trainer" width="176" height="90" data-path="images/fine-reader/engine/trainer.gif" />[](/fine-reader/engine/api-reference/classification-related-objects/validationparams)[](/fine-reader/engine/api-reference/classification-related-objects/trainingparams)

[Object Diagram](/fine-reader/engine/api-reference/object-diagram)

## Output parameter

This object is the output parameter of the [CreateTrainer](/fine-reader/engine/api-reference/classification-related-objects/classificationengine/createtrainer-method) method of the [ClassificationEngine](/fine-reader/engine/api-reference/classification-related-objects/classificationengine) object.

## Samples

This object is used in the [Classification](/fine-reader/engine/guided-tour/samples#classification) demo tool in Windows and the [Classification](/fine-reader/engine/guided-tour/samples#classification_unix) code sample in Linux and macOS.

## See also

[Document Classification](/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-classification)
