vipr.plugins.compare.structure package¶
Submodules¶
vipr.plugins.compare.structure.models module¶
Structural compare read models.
- class vipr.plugins.compare.structure.models.DiagramArtifact(id: str, title: str | None, x_label: str | None = None, y_label: str | None = None, x_scale: str | None = None, y_scale: str | None = None, resolved_series: list[~vipr.plugins.compare.structure.models.ResolvedSeries] = <factory>, data: dict[str, ~typing.Any] = <factory>, series: list[dict[str, ~typing.Any]] = <factory>, data_keys: list[str] = <factory>, series_names: list[str] = <factory>, metadata_keys: list[str] = <factory>, visualization_type: str | None = None, fit_metrics: list[dict[str, ~typing.Any]] = <factory>)¶
Bases:
objectNormalized view of one diagram in a stored result.
- resolved_series: list[ResolvedSeries]¶
- class vipr.plugins.compare.structure.models.IndexedResult(result_id: str, config_name: str | None, diagrams: dict[str, ~vipr.plugins.compare.structure.models.DiagramArtifact] = <factory>, tables: dict[str, ~vipr.plugins.compare.structure.models.TableArtifact] = <factory>, prediction_timing: dict[str, int | float] = <factory>, batch_metadata_keys: list[str] = <factory>)¶
Bases:
objectNormalized structural index of one stored result.
- diagrams: dict[str, DiagramArtifact]¶
- tables: dict[str, TableArtifact]¶
- class vipr.plugins.compare.structure.models.ResolvedSeries(x_values: list[Any], y_values: list[Any], error_values: list[Any] | None = None, label: str | None = None, kind: str | None = None)¶
Bases:
objectResolved compare-facing view of one diagram series.
- class vipr.plugins.compare.structure.models.StructuralCompareSummary(result_overview_rows: list[dict[str, Any]], artifact_rows: list[dict[str, Any]], metric_rows: list[dict[str, Any]], result_timing_rows: list[dict[str, Any]], shared_diagrams: list[str], partial_diagrams: dict[str, list[str]], shared_tables: list[str], partial_tables: dict[str, list[str]])¶
Bases:
objectStructural comparison summary across N stored results.
- class vipr.plugins.compare.structure.models.TableArtifact(id: str, title: str | None, rows: list[dict[str, ~typing.Any]] = <factory>, columns: list[str] = <factory>, row_count: int = 0, key_field: str | None = None, row_keys: list[str] = <factory>)¶
Bases:
objectNormalized view of one table in a stored result.
vipr.plugins.compare.structure.normalize module¶
Normalization helpers for compare read models.
vipr.plugins.compare.structure.summary module¶
Structural summary builders for compare results.
- vipr.plugins.compare.structure.summary.compare_indexed_results(results: list[IndexedResult]) StructuralCompareSummary¶
Compare normalized stored results structurally.
Module contents¶
Structural compare packages for normalized read models and summaries.
- class vipr.plugins.compare.structure.DiagramArtifact(id: str, title: str | None, x_label: str | None = None, y_label: str | None = None, x_scale: str | None = None, y_scale: str | None = None, resolved_series: list[~vipr.plugins.compare.structure.models.ResolvedSeries] = <factory>, data: dict[str, ~typing.Any] = <factory>, series: list[dict[str, ~typing.Any]] = <factory>, data_keys: list[str] = <factory>, series_names: list[str] = <factory>, metadata_keys: list[str] = <factory>, visualization_type: str | None = None, fit_metrics: list[dict[str, ~typing.Any]] = <factory>)¶
Bases:
objectNormalized view of one diagram in a stored result.
- resolved_series: list[ResolvedSeries]¶
- class vipr.plugins.compare.structure.IndexedResult(result_id: str, config_name: str | None, diagrams: dict[str, ~vipr.plugins.compare.structure.models.DiagramArtifact] = <factory>, tables: dict[str, ~vipr.plugins.compare.structure.models.TableArtifact] = <factory>, prediction_timing: dict[str, int | float] = <factory>, batch_metadata_keys: list[str] = <factory>)¶
Bases:
objectNormalized structural index of one stored result.
- diagrams: dict[str, DiagramArtifact]¶
- tables: dict[str, TableArtifact]¶
- class vipr.plugins.compare.structure.ResolvedSeries(x_values: list[Any], y_values: list[Any], error_values: list[Any] | None = None, label: str | None = None, kind: str | None = None)¶
Bases:
objectResolved compare-facing view of one diagram series.
- class vipr.plugins.compare.structure.StructuralCompareSummary(result_overview_rows: list[dict[str, Any]], artifact_rows: list[dict[str, Any]], metric_rows: list[dict[str, Any]], result_timing_rows: list[dict[str, Any]], shared_diagrams: list[str], partial_diagrams: dict[str, list[str]], shared_tables: list[str], partial_tables: dict[str, list[str]])¶
Bases:
objectStructural comparison summary across N stored results.
- class vipr.plugins.compare.structure.TableArtifact(id: str, title: str | None, rows: list[dict[str, ~typing.Any]] = <factory>, columns: list[str] = <factory>, row_count: int = 0, key_field: str | None = None, row_keys: list[str] = <factory>)¶
Bases:
objectNormalized view of one table in a stored result.
- vipr.plugins.compare.structure.compare_indexed_results(results: list[IndexedResult]) StructuralCompareSummary¶
Compare normalized stored results structurally.