AttributeModelOutputAttribute
- class savant.base.model.AttributeModelOutputAttribute(name='???', labels=<factory>, threshold=None, multi_label=False, internal=False)
AttributeModel output attribute configuration template. Validates entries in a module config under
model.output.attributes
.Example,
attributes: - name: color labels: ['red', 'green']
- name: str = '???'
Attribute name will be used in the label under which a model’s results are added to metadata.
- labels: List[str]
A list of text labels that correspond to class ids of a classification model. The number and order of these labels should match those of a classification model’s result classes.
- threshold: Optional[float] = None
Minimum threshold label probability. The model outputs the label having the highest probability if it is greater than this threshold.