Open topic with navigation

# SetClassifierTrainingOption

Sets the value of a training option that is applied to a classifier.

You can set the following training options:

Key | Description | Default
--- | --- | ---
`classifierType` | The type of classifier: `Bayesian` - the default classifier type. This is the only classifier type that supports prior probabilities (see Priors). `Maxvote` - this classifier requires fewer training images. `CNN` - Convolutional Neural Network. In most cases produces more accurate results than the other classifier types, but this classifier requires a large amount of time to train (hours, days, or even weeks depending on the number of training iterations). | Bayesian
`iterations` | The number of iterations to perform when training a neural network classifier. A larger number of iterations can result in more accurate classification, especially for classifiers that contain many similar classes. To find the optimum number of iterations, HPE recommends that you start with a small number, and double the number of iterations each time you train until classification accuracy is acceptable. The time required to train the classifier is proportional to the number of iterations. | 500

Note: Changing a training option invalidates all training associated with a classifier. After using this action, you must retrain Media Server by running the action BuildClassifier.

Note: This is an administrative action that can be sent only from AdminClients (which are set in the `[Server]` section of the configuration file).

Type: synchronous

Parameter | Description | Required
--- | --- | ---
`classifier` | The name of the classifier to configure. | Yes
`key` | The name of the training option to set. | Yes
`value` | The value for the training option. | Yes

## Example

This example sets the `classifierType` training option to `maxvote`:

    /action=SetClassifierTrainingOption&classifier=vehicles
                                       &key=classifierType
                                       &value=maxvote

## Response

    <autnresponse>
       <action>SETCLASSIFIERTRAININGOPTION</action>
       <response>SUCCESS</response>
       <responsedata></responsedata>
    </autnresponse>

© 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