Sets the value of a training option that is applied to a classifier.
You can set the following training options:
Key | Description | Default |
---|---|---|
batchsize
|
The number of images to train concurrently. The value must be 1,2,4,8,16, or 32. Larger batch sizes result in slightly faster training but require more memory (more GPU memory if you are training with a GPU). If you are training with a GPU that has limited memory you might need to reduce the batch size. | 32 |
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, Micro Focus 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.
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 |
This example sets the iterations
training option to 250
:
/action=SetClassifierTrainingOption&classifier=vehicles &key=iterations &value=250
<autnresponse> <action>SETCLASSIFIERTRAININGOPTION</action> <response>SUCCESS</response> <responsedata></responsedata> </autnresponse>
|