Open topic with navigation

# ClassifierTrain

Train a classifier.

After you have created a classifier, and trained the classes that you want to define, use the `ClassifierTrain` action to train and build the classifier. You must set ClassifierName to the name of the classifier that you want to train.

Note: To train a classifier, the classifier must have classes, all of which must have training defined.

In addition, the `ClassifierTrain` action returns an error if none of the training documents contain features (for example, because none of the documents contain the specified classifier FeatureFields).

When you run this action, IDOL Server retrieves the training documents and extracts information from the classifier FeatureFields. It uses these features to train each of the classes in the classifier.

After you have trained the classifier, you can use the ClassifierQuery action to classify documents.

## Example

    http://12.3.4.56:9000/action=ClassifierTrain&ClassifierName=food

This action trains the `food` classifier.

## Parameters

Parameter | Description | Required
--- | --- | ---
ClassifierName | The name of the classifier to train. | Yes

This action accepts the following standard ACI action parameters.

Parameter | Description
--- | ---
ActionID | A string to use to identify an ACI action.
EncryptResponse | Encrypt the output.
FileName | The file to write output to.
ForceTemplateRefresh | Forces the server to load the template from disk.
Output | Writes output to a file.
ResponseFormat | The format of the action output.
Template | The template to use for the action output.
TemplateParamCSVs | A list of variables to use for the specified template.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm