Skip to content

Bedrock Agentcore  >  Structures  >  VariantResult

VariantResult

Structure Class

VariantResult dataclass

Statistical results for a treatment variant compared against the control.

Attributes

absolute_change class-attribute instance-attribute
absolute_change: float | None = None

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

confidence_interval class-attribute instance-attribute
confidence_interval: ConfidenceInterval | None = None

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 class-attribute instance-attribute
p_value: float | None = None

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

percent_change class-attribute instance-attribute
percent_change: float | None = None

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.