statistics
Statistical analysis models.
Classes
class
ComparisonResult
(BaseModel)Comparison between TF and CF for a metric.
Attributes
| Name | Type | Description |
|---|---|---|
| cf_stats | StatisticalSummary | — |
| metric_name | str | — |
| p_value | float | None | — |
| reduction_percent | float | None | — |
| speedup_factor | float | None | — |
| statistically_significant | bool | — |
| tf_stats | StatisticalSummary | — |
Methods
to_dict(self) → dictConvert to JSON-serializable dictionary.
to_json(self) → strSerialize to JSON string.
class
StatisticalSummary
(BaseModel)Statistical summary for a set of measurements.
Attributes
| Name | Type | Description |
|---|---|---|
| ci_lower | float | — |
| ci_upper | float | — |
| max | float | — |
| mean | float | — |
| median | float | — |
| metric_name | str | — |
| min | float | — |
| n | int | — |
| p25 | float | — |
| p50 | float | — |
| p75 | float | — |
| p90 | float | — |
| p95 | float | — |
| p99 | float | — |
| range | float | — |
| std | float | — |
| unit | str | — |
| variance | float | — |
Methods
to_dict(self) → dictConvert to JSON-serializable dictionary.
to_json(self) → strSerialize to JSON string.