# Train 4-Class Classifier

This app sorts your parts into two, three, or four classes. You can customize these classes any time during the training. Also, you can set a class to fail. With this option, you can create a class for Not Good (NG) parts.

The bars under the labeling buttons represent the confidence the vision sensor has in correctly labeling the images. The confidence tends to improve as you label more parts. The vision sensor is well-trained once the confidence indicator can suggest labels with two or three bars.

Rely on the guidance text that appears in your browser under the labeling buttons to see how well you are doing. The guidance text tells you when you are ready to go on, or when you need to try something different.

## Procedure

1. Plan what classes you need.

2. Click Edit Classes to do any of the following:

   - Add classes.

   - Change the color of the labeling buttons.

   - Rename the classes.

   - Select Set to Fail for any of the classes.
     The vision sensor automatically fails the parts in a class that is set to fail.

3. Label minimum two parts for each class.

   At this point, the vision sensor starts to suggest a label for new parts. The Confidence Indicator shows how confident the vision sensor is about the suggested label.

4. Label more parts to improve the confidence of the vision sensor.

5. Continue until you are satisfied with the results.

6. Click Proceed.

Best Practices

- Label a diverse set of parts into different classes.

- Verify that the vision sensor correctly suggests labels for new parts.

Troubleshooting

- Click Untrain Classifier to reset the training.

- The confidence sometimes stays low when the parts in the classes are very different. However, the vision sensor might still be able to sort the parts into the correct class.

- If the vision sensor does not recognize a part, it labels the part as Unclassified. This is normal behavior.

- If the confidence is still low after labeling many parts, try a different app that could be better suited to the job.

## After Training

Use the Monitoring View to check how well the vision sensor performs in practice. You are ready with the training when the vision sensor consistently and correctly labels new parts with two or three bars.

You can come back to the Train tab any time later to improve the training with more parts.