Open topic with navigation

# ClassifierCreate

Create a classifier to use to classify documents.

Classifiers allow you to categorize documents by using the random forest algorithm. Each classifier defines a set of classes, which you must create and train with relevant data. You can then use the classifier to assign documents to the most relevant class.

When you send the `ClassifierCreate` action, you must set ClassifierName to a unique name for the new classifier, and set ClassifierType to the type of classifier (`RandomForest`). You must also set the FeatureFields parameter to a comma-separated list of fields from your training documents that contain the text that you want to use to classify your documents.

After you create the classifier, you must create and train classes by using the ClassifierAddClass action. You then train and build the classifier by using the ClassifierTrain action. After you have trained the classifier, you can use the ClassifierQuery action to classify documents.

## Example

    http://12.3.4.56:9000/action=ClassifierCreate&ClassifierType=RandomForest&ClassifierName=food&FeatureFields=ingredient,flavor,accompaniments,meal

This action creates a random forest classifier with the name `food`. The classifier uses features in the `ingredient`, `flavor`, `accompaniments`, and `meal` fields to classify documents.

## Parameters

Parameter | Description | Required
--- | --- | ---
ClassifierName | The name of the classifier to create. | Yes
ClassifierType | The type of classifier to create. | Yes
FeatureFields | The document fields to use as features in the classifier. | 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