Skip to content

EvaluatorMetric

Source code in docs_src/capo_cloudwatchomni/types/evaluator_metric.py
class EvaluatorMetric(TypedDict, closed=True):
    evaluator_id: "capo_cloudwatchomni.types.evaluator_identifier.EvaluatorIdentifier"
    """The ID of the evaluator."""
    average: NotRequired["float"]
    """The average score across the scored cases, for a numeric evaluator."""
    min: NotRequired["float"]
    """The lowest score across the scored cases, for a numeric evaluator."""
    max: NotRequired["float"]
    """The highest score across the scored cases, for a numeric evaluator."""
    label_counts: NotRequired["capo_cloudwatchomni.types.label_count_map.LabelCountMap"]
    """The number of cases with each label, for a categorical evaluator."""
    scored_count: NotRequired["int"]
    """The number of cases the evaluator scored."""
    passed_count: NotRequired["int"]
    """The number of cases that met the rule's criterion for this evaluator. Runs with a rule only."""

average instance-attribute

average: NotRequired[float]

The average score across the scored cases, for a numeric evaluator.

evaluator_id instance-attribute

evaluator_id: EvaluatorIdentifier

The ID of the evaluator.

label_counts instance-attribute

label_counts: NotRequired[LabelCountMap]

The number of cases with each label, for a categorical evaluator.

max instance-attribute

max: NotRequired[float]

The highest score across the scored cases, for a numeric evaluator.

min instance-attribute

min: NotRequired[float]

The lowest score across the scored cases, for a numeric evaluator.

passed_count instance-attribute

passed_count: NotRequired[int]

The number of cases that met the rule's criterion for this evaluator. Runs with a rule only.

scored_count instance-attribute

scored_count: NotRequired[int]

The number of cases the evaluator scored.