vertebrae.results
Structured benchmark results.
Classes
Result data for one evaluated extractor. |
|
Aggregated result for a benchmark run. |
Functions
|
Return deterministic canonical columns for benchmark and monitoring rows. |
|
Return a null row matching the canonical result schema. |
Module Contents
- vertebrae.results.benchmark_result_columns(metric_names=None, observed_columns=None)[source]
Return deterministic canonical columns for benchmark and monitoring rows.
- Parameters:
metric_names (Optional[List[str]])
observed_columns (Optional[List[str]])
- Return type:
List[str]
- vertebrae.results.null_benchmark_result_row(columns=None)[source]
Return a null row matching the canonical result schema.
- Parameters:
columns (Optional[List[str]])
- Return type:
Dict[str, Any]
- class vertebrae.results.ExtractorResult[source]
Result data for one evaluated extractor.
- to_dict()[source]
Serialize the extractor result to a JSON-safe dictionary.
- Returns:
JSON-compatible result data.
- Return type:
Dict[str, Any]
- property overlap: vertebrae.scoring.metrics.MetricResult | None[source]
Return the overlap metric result without duplicating serialized state.
- Return type:
Optional[vertebrae.scoring.metrics.MetricResult]
- class vertebrae.results.BenchmarkResult[source]
Aggregated result for a benchmark run.
- to_dict()[source]
Serialize the benchmark result to a JSON-safe dictionary.
- Returns:
JSON-compatible benchmark data.
- Return type:
Dict[str, Any]
- ranked_results()[source]
Return extractor results sorted by the selected aggregate metric.
- Returns:
Sorted extractor results.
- Return type:
List[ExtractorResult]
- quality_cohort(tolerance=None)[source]
Return candidates within an absolute primary-score tolerance of the best.
- Parameters:
tolerance (Optional[float])
- Return type:
List[ExtractorResult]
- to_dataframe(*, include_invalid=False)[source]
Convert benchmark results into a pandas DataFrame.
- Parameters:
include_invalid (bool) – Whether results with an invalid primary aggregate should remain in the table with a null rank. The default preserves the ranked, valid-only benchmark view.
- Returns:
A pandas DataFrame with one row per extractor.
- Return type:
Any