# SetObjectClassRecognizerTrainingOption

Sets the value of a training option for an object class recognizer.

You can set the following training options:

Key | Description | Default
--- | --- | ---
`batch_size` | The number of images to train concurrently (1,2,4,8,16,32,64). Larger batch sizes result in faster training, but require more memory (more GPU memory if you are training with a GPU). This option applies only when you set `recognizer_type` to `generation2` or `generation3`. | 4
`iterations` | The number of iterations to perform when training the neural network. A larger number of iterations can result in more accurate recognition, especially for recognizers 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 recognition accuracy is acceptable. | 1000
`recognizer_type` | The type of object class recognizer to use. For information about the recognizer types, refer to the Media Server Administration Guide. `generation1` `generation2` `generation3` | `generation1`

NOTE: Changing a training option invalidates all training associated with a recognizer. After using this action, you must retrain Media Server by running the action BuildObjectClassRecognizer.

Type: synchronous

Parameter | Description | Required
--- | --- | ---
`recognizer` | The name of the recognizer 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 `iterations` training option to `250`:

    /action=SetObjectClassRecognizerTrainingOption&recognizer=vehicles
                                                  &key=iterations
                                                  &value=250

## Response

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

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm