faster_etapr.types.eTaPrecision#
- class faster_etapr.types.eTaPrecision(value: float, detection_score: float, portion_score: float, segments: int)[source]#
Bases:
MetricContainer for the
precisionof eTa. When calling eTaPrecision._asdict() the contents will be mapped to:{ 'eta/precision': value, 'eta/precision_detection': detection_score, 'eta/precision_portion': portion_score, 'eta/correct_predictions': segments, }
- value[float]#
Value of the metric.
- detection_score[float]#
Detection score (percentage of counted segments).
- portion_score[float]#
Portion score (portion of overlap with segments).
- segments[int]#
Number of segments which contribute to the score. For the recall this is the number of detected segments and for the precision as the number correct predictions.
Methods
Attributes
Alias for field number 1
Alias for field number 2
Alias for field number 3
Alias for field number 0
- __add__(value, /)#
Return self+value.
- __mul__(value, /)#
Return self*value.
- count(value, /)#
Return number of occurrences of value.
- detection_score: float#
Alias for field number 1
- index(value, start=0, stop=9223372036854775807, /)#
Return first index of value.
Raises ValueError if the value is not present.
- portion_score: float#
Alias for field number 2
- segments: int#
Alias for field number 3
- value: float#
Alias for field number 0