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

Properties

NameTypeDescription
TrainingParamsTrainingParams, read-onlyThe 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.
ValidationParamsValidationParams, read-onlyThe parameters of model validation. This property lets you specify if k-fold cross-validation should be performed and what settings should be used.

Methods

NameDescription
TrainModelTrains the classifier on the input data set.
Trainer Object Diagram

Output parameter

This object is the output parameter of the CreateTrainer method of the ClassificationEngine object.

Samples

This object is used in the Classification demo tool in Windows and the Classification code sample in Linux and macOS.

See also

Document Classification