Open topic with navigation

# Train a Binary Category

You can use the `BinaryCatTrain` action to train a binary category. Unlike normal categories, which have only positive training, binary categories can have both positive and negative training.

If the binary category has existing training, `BinaryCatTrain` adds the new training to it. If you want to replace the training for a binary category, you must first use the `BinaryCatDeleteTraining` action to delete the existing training. For example:

    http://12.3.4.56:9000/action=BinaryCatTrain&Name=spam_binarycat&PositiveDocID=123,456&NegativeDocID=789,890

This action uses port `9000` to instruct IDOL Server, which is located on a machine with the IP address `12.3.4.56`, to train the binary category named `spam_binarycat`. It uses the documents with IDs `123` and `456` for positive training, and the documents with IDs `789` and `890` for negative training.

© 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