Skip to main content
This object is a categorized set of data which can be used to train the classifier. Use the methods of its Categories subobject to add and manage classification objects corresponding to different category labels. At least two of the categories need to contain some classification objects for the training method to return without errors.

Properties

NameTypeDescription
CategoriesCategories, read-onlyThe categories of the data.

Methods

NameDescription
LoadFromFileRestores the object contents from a file on disk.
SaveToFileSaves the object contents into a file on disk.

Input parameter

This object is passed as an input parameter to the TrainModel method of the Trainer object.

Output parameter

This object is the output parameter of the CreateTrainingData method of the ClassificationEngine object. TrainingData Object Diagram

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