Skip to content

ExperimentEvaluator

Source code in docs_src/capo_cloudwatchomni/types/experiment_evaluator.py
class ExperimentEvaluator(TypedDict, closed=True):
    evaluator_id: "capo_cloudwatchomni.types.evaluator_identifier.EvaluatorIdentifier"
    """The ID of the evaluator, unique among the run's evaluators. The run's rule and case results refer to the evaluator by this ID."""
    rating_scale: NotRequired["capo_cloudwatchomni.types.rating_scale.RatingScale"]
    """The kind of result the evaluator produces. Must be NUMERIC when the run's rule has an evaluatorAverage gate on this evaluator. When set, a case criterion's threshold must match it: minScore or maxScore for NUMERIC, passLabels for CATEGORICAL."""
    score_direction: NotRequired[
        "capo_cloudwatchomni.types.score_direction.ScoreDirection"
    ]
    """Whether a higher or a lower score is better for the evaluator. The default is HIGHER_IS_BETTER. A case criterion and an evaluatorAverage gate on this evaluator must follow it: minScore and min for HIGHER_IS_BETTER, maxScore and max for LOWER_IS_BETTER. When the run is compared with a control, a score that moves the other way counts as a regression. Not valid when ratingScale is CATEGORICAL."""

evaluator_id instance-attribute

evaluator_id: EvaluatorIdentifier

The ID of the evaluator, unique among the run's evaluators. The run's rule and case results refer to the evaluator by this ID.

rating_scale instance-attribute

rating_scale: NotRequired[RatingScale]

The kind of result the evaluator produces. Must be NUMERIC when the run's rule has an evaluatorAverage gate on this evaluator. When set, a case criterion's threshold must match it: minScore or maxScore for NUMERIC, passLabels for CATEGORICAL.

score_direction instance-attribute

score_direction: NotRequired[ScoreDirection]

Whether a higher or a lower score is better for the evaluator. The default is HIGHER_IS_BETTER. A case criterion and an evaluatorAverage gate on this evaluator must follow it: minScore and min for HIGHER_IS_BETTER, maxScore and max for LOWER_IS_BETTER. When the run is compared with a control, a score that moves the other way counts as a regression. Not valid when ratingScale is CATEGORICAL.