class documentation
class ClassifierOutputProcessor(OutputProcessor): (source)
Constructor: ClassifierOutputProcessor(classes, store_logits)
Output processor for single label classifiers.
Parameters | |
classes | the list of class labels for the model |
store | whether to store logits in the model outputs |
Method | __call__ |
Parses the model output. |
Method | __init__ |
Undocumented |
Instance Variable | classes |
Undocumented |
Instance Variable | store |
Undocumented |
Parses the model output.
Parameters | |
output | either a FloatTensor[N, M] containing the logits for N images and M classes, or a dict with a "logits" key containing the logits |
_ | unused argument |
confidenceNone | an optional confidence threshold to use to filter any applicable predictions |
Returns | |
a list of fiftyone.core.labels.Classification instances |