Skip to content

VariantResult

Source code in docs_src/capo_bedrock_agentcore/types/variant_result.py
class VariantResult(TypedDict, closed=True):
    variant_name: "str"
    """<p>The name of the treatment variant.</p>"""
    sample_size: "int"
    """<p>The number of sessions evaluated for this variant.</p>"""
    mean: "float"
    """<p>The mean evaluation score for this variant.</p>"""
    absolute_change: NotRequired["float"]
    """<p>The absolute change in mean score compared to the control variant.</p>"""
    percent_change: NotRequired["float"]
    """<p>The percentage change in mean score compared to the control variant.</p>"""
    p_value: NotRequired["float"]
    """<p>The p-value indicating the statistical significance of the observed difference.</p>"""
    confidence_interval: NotRequired[
        "capo_bedrock_agentcore.types.confidence_interval.ConfidenceInterval"
    ]
    """<p>The confidence interval for the observed difference.</p>"""
    is_significant: "bool"
    """<p>Whether the observed difference is statistically significant.</p>"""

absolute_change instance-attribute

absolute_change: NotRequired[float]

The absolute change in mean score compared to the control variant.

confidence_interval instance-attribute

confidence_interval: NotRequired[ConfidenceInterval]

The confidence interval for the observed difference.

is_significant instance-attribute

is_significant: bool

Whether the observed difference is statistically significant.

mean instance-attribute

mean: float

The mean evaluation score for this variant.

p_value instance-attribute

p_value: NotRequired[float]

The p-value indicating the statistical significance of the observed difference.

percent_change instance-attribute

percent_change: NotRequired[float]

The percentage change in mean score compared to the control variant.

sample_size instance-attribute

sample_size: int

The number of sessions evaluated for this variant.

variant_name instance-attribute

variant_name: str

The name of the treatment variant.