Skip to main content

ClassificationEngine.predict_labels

ClassificationEngine.predict_labels(model_name=None, split='test')

The class names, because a name is what a reader wanted.

Read off data.classes, whose order is the class index - so this is the one place where the engine knows the right names and a caller passing their own could be wrong without anything saying so.

A list of names per image when the label is a set, which is the trainer’s own shape and is there for its reason: one name per image would have to pick which of the findings is the one, and the model was not asked that.