Documentation

statistics

Statistical analysis models.

Classes

class

ComparisonResult

(BaseModel)

Comparison between TF and CF for a metric.

Attributes

NameTypeDescription
cf_statsStatisticalSummary
metric_namestr
p_valuefloat | None
reduction_percentfloat | None
speedup_factorfloat | None
statistically_significantbool
tf_statsStatisticalSummary

Methods

to_dict(self) dict

Convert to JSON-serializable dictionary.

to_json(self) str

Serialize to JSON string.

class

StatisticalSummary

(BaseModel)

Statistical summary for a set of measurements.

Attributes

NameTypeDescription
ci_lowerfloat
ci_upperfloat
maxfloat
meanfloat
medianfloat
metric_namestr
minfloat
nint
p25float
p50float
p75float
p90float
p95float
p99float
rangefloat
stdfloat
unitstr
variancefloat

Methods

to_dict(self) dict

Convert to JSON-serializable dictionary.

to_json(self) str

Serialize to JSON string.