coco_pipe.report.variance#
Reusable scientific report section for subject-alignment diagnostics.
Functions#
|
Validate and copy the generic subject-alignment diagnostics table. |
|
Validate and select one exact cohort/population diagnostic assessment. |
|
Compare exact diagnostic populations across embedding models. |
|
Join paired decoding and leakage deltas and mark Pareto-optimal transforms. |
|
Build a scientific before/after report section for subject alignment. |
Module Contents#
- coco_pipe.report.variance.validate_subject_alignment_diagnostics(diagnostics)#
Validate and copy the generic subject-alignment diagnostics table.
- Parameters:
diagnostics (pandas.DataFrame)
- Return type:
- coco_pipe.report.variance.select_subject_alignment_diagnostics(diagnostics, *, cohort_name, population)#
Validate and select one exact cohort/population diagnostic assessment.
- Parameters:
diagnostics (pandas.DataFrame)
cohort_name (str)
population (str)
- Return type:
- coco_pipe.report.variance.build_alignment_coverage_section(diagnostics, *, title='Cross-Model Diagnostic Coverage')#
Compare exact diagnostic populations across embedding models.
- Parameters:
diagnostics (pandas.DataFrame)
title (str)
- Return type:
- coco_pipe.report.variance.build_alignment_tradeoff_section(performance, diagnostics, *, title='Performance-Alignment Trade-off')#
Join paired decoding and leakage deltas and mark Pareto-optimal transforms.
- Parameters:
performance (pandas.DataFrame)
diagnostics (pandas.DataFrame)
title (str)
- Return type:
- coco_pipe.report.variance.build_subject_alignment_diagnostics_section(diagnostics, *, scatter_figure=None, title='Subject Alignment Diagnostics')#
Build a scientific before/after report section for subject alignment.
The section tests the intended trade-off: subject-identifiable structure should decrease while label-relevant structure is retained. It supports the tidy output of
coco_pipe.diagnostics.variance_decomposition_report(). The optional scatter is caller-provided because embedding loading and projection are dataset-specific and are qualitative only.- Parameters:
diagnostics (pandas.DataFrame)
scatter_figure (Any | None)
title (str)
- Return type: