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: object

Normalized view of one diagram in a stored result.

data: dict[str, Any]
data_keys: list[str]
fit_metrics: list[dict[str, Any]]
id: str
metadata_keys: list[str]
resolved_series: list[ResolvedSeries]
series: list[dict[str, Any]]
series_names: list[str]
title: str | None
visualization_type: str | None = None
x_label: str | None = None
x_scale: str | None = None
y_label: str | None = None
y_scale: str | None = None
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: object

Normalized structural index of one stored result.

batch_metadata_keys: list[str]
config_name: str | None
diagrams: dict[str, DiagramArtifact]
prediction_timing: dict[str, int | float]
result_id: str
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: object

Resolved compare-facing view of one diagram series.

error_values: list[Any] | None = None
kind: str | None = None
label: str | None = None
x_values: list[Any]
y_values: list[Any]
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: object

Structural comparison summary across N stored results.

artifact_rows: list[dict[str, Any]]
metric_rows: list[dict[str, Any]]
partial_diagrams: dict[str, list[str]]
partial_tables: dict[str, list[str]]
result_overview_rows: list[dict[str, Any]]
result_timing_rows: list[dict[str, Any]]
shared_diagrams: list[str]
shared_tables: list[str]
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: object

Normalized view of one table in a stored result.

columns: list[str]
id: str
key_field: str | None = None
row_count: int = 0
row_keys: list[str]
rows: list[dict[str, Any]]
title: str | None

vipr.plugins.compare.structure.normalize module

Normalization helpers for compare read models.

vipr.plugins.compare.structure.normalize.normalize_result_structure(result_id: str, result_data: dict[str, Any]) IndexedResult

Normalize one stored result into a structure-friendly index.

vipr.plugins.compare.structure.normalize.to_dict(value: Any) dict[str, Any]

Convert Pydantic-like models to plain dictionaries.

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: object

Normalized view of one diagram in a stored result.

data: dict[str, Any]
data_keys: list[str]
fit_metrics: list[dict[str, Any]]
id: str
metadata_keys: list[str]
resolved_series: list[ResolvedSeries]
series: list[dict[str, Any]]
series_names: list[str]
title: str | None
visualization_type: str | None = None
x_label: str | None = None
x_scale: str | None = None
y_label: str | None = None
y_scale: str | None = None
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: object

Normalized structural index of one stored result.

batch_metadata_keys: list[str]
config_name: str | None
diagrams: dict[str, DiagramArtifact]
prediction_timing: dict[str, int | float]
result_id: str
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: object

Resolved compare-facing view of one diagram series.

error_values: list[Any] | None = None
kind: str | None = None
label: str | None = None
x_values: list[Any]
y_values: list[Any]
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: object

Structural comparison summary across N stored results.

artifact_rows: list[dict[str, Any]]
metric_rows: list[dict[str, Any]]
partial_diagrams: dict[str, list[str]]
partial_tables: dict[str, list[str]]
result_overview_rows: list[dict[str, Any]]
result_timing_rows: list[dict[str, Any]]
shared_diagrams: list[str]
shared_tables: list[str]
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: object

Normalized view of one table in a stored result.

columns: list[str]
id: str
key_field: str | None = None
row_count: int = 0
row_keys: list[str]
rows: list[dict[str, Any]]
title: str | None
vipr.plugins.compare.structure.compare_indexed_results(results: list[IndexedResult]) StructuralCompareSummary

Compare normalized stored results structurally.

vipr.plugins.compare.structure.normalize_result_structure(result_id: str, result_data: dict[str, Any]) IndexedResult

Normalize one stored result into a structure-friendly index.

vipr.plugins.compare.structure.to_dict(value: Any) dict[str, Any]

Convert Pydantic-like models to plain dictionaries.