faster_etapr.types.eTaRecall#

class faster_etapr.types.eTaRecall(value: float, detection_score: float, portion_score: float, segments: int)[source]#

Bases: Metric

Container for the recall of eTa. When calling eTaRecall._asdict() the contents will be mapped to:

{
  'eta/recall': value,
  'eta/recall_detection': detection_score,
  'eta/recall_portion': portion_score,
  'eta/detected_anomalies': 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

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

detection_score

Alias for field number 1

portion_score

Alias for field number 2

segments

Alias for field number 3

value

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