coco_pipe.report.decoding#
Composable section builders for decoding reports.
Attributes#
Exceptions#
Signal that a report section is inapplicable because its data is absent. |
Functions#
|
Build high-level decoding context. |
|
Build the scalar model-performance summary. |
|
Build fold scores and score dispersion only. |
|
Build confusion, ROC, precision-recall, and calibration diagnostics. |
|
Combine the now-separated CV and probability blocks into one section. |
|
Build finite-sample and temporal statistical assessment. |
|
Build temporal score and generalization diagnostics when applicable. |
|
Build aggregate score and paired model-comparison figures. |
|
Build feature importance, stability, and sensor-family summaries. |
|
Build feature-family sensor profiles when spatial metadata exists. |
|
Build timing and warning diagnostics as supplementary content. |
|
Build best-parameter and search-result diagnostics. |
|
Build neural training artifacts when available. |
|
Build the stored run configuration. |
|
Build environment and provenance metadata. |
|
Build explicit caveats for unavailable optional diagnostics. |
|
Build a compact inventory of available result accessors. |
|
Build ordered decoding sections without creating or mutating a report. |
|
Build a decoding report from one |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents#
Bases:
RuntimeErrorSignal that a report section is inapplicable because its data is absent.
- coco_pipe.report.decoding.DEFAULT_SECTIONS = ['overview', 'configuration', 'provenance', 'model_summary', 'cv', 'performance', 'statistical',...#
- coco_pipe.report.decoding.build_decoding_overview_section(result, *, name='Overview')#
Build high-level decoding context.
- Parameters:
result (Any)
name (str)
- Return type:
- coco_pipe.report.decoding.build_decoding_summary_section(result, *, name='Model Performance')#
Build the scalar model-performance summary.
- Parameters:
result (Any)
name (str)
- Return type:
- coco_pipe.report.decoding.build_cv_section(result, *, metric=None, model=None, name='Cross-Validation', include_tables=False, interactive=False)#
Build fold scores and score dispersion only.
- coco_pipe.report.decoding.build_probability_section(result, *, model=None, name='Confusion and Probability', include_tables=False, interactive=False)#
Build confusion, ROC, precision-recall, and calibration diagnostics.
- Parameters:
- Return type:
- coco_pipe.report.decoding.build_decoding_diagnostics_section(result, *, metric=None, model=None, name='Decoding Diagnostics', include_tables=False, interactive=False)#
Combine the now-separated CV and probability blocks into one section.
Legacy-only: this re-colocates diagnostics that the presets deliberately keep apart. It backs the deprecated
add_decoding_diagnostics()method and is intentionally absent from every preset, so it cannot reintroduce the historical double-render. Preferbuild_cv_section+build_probability_section.
- coco_pipe.report.decoding.build_statistical_section(result, *, metric=None, model=None, name='Statistical Assessment', interactive=False)#
Build finite-sample and temporal statistical assessment.
- Parameters:
- Return type:
- coco_pipe.report.decoding.build_temporal_section(result, *, metric=None, model=None, name='Temporal Decoding', include_tables=False, interactive=False)#
Build temporal score and generalization diagnostics when applicable.
- coco_pipe.report.decoding.build_performance_section(result, *, metric=None, name='Performance', interactive=False)#
Build aggregate score and paired model-comparison figures.
- Parameters:
- Return type:
- coco_pipe.report.decoding.build_features_section(result, *, feature_metadata=None, model=None, top_n=20, name='Features', include_tables=False, interactive=False)#
Build feature importance, stability, and sensor-family summaries.
- Parameters:
- Return type:
- coco_pipe.report.decoding.build_topomaps_section(result, *, feature_metadata=None, info=None, coords=None, name='Sensor Maps')#
Build feature-family sensor profiles when spatial metadata exists.
- Parameters:
result (Any)
feature_metadata (pandas.DataFrame | None)
info (Any)
coords (Any)
name (str)
- Return type:
- coco_pipe.report.decoding.build_fit_diagnostics_section(result, *, model=None, name='Fit Diagnostics', include_tables=False, supplementary=True, interactive=False)#
Build timing and warning diagnostics as supplementary content.
- coco_pipe.report.decoding.build_tuning_section(result, *, model=None, name='Hyperparameter Tuning', include_tables=False, supplementary=True, interactive=False)#
Build best-parameter and search-result diagnostics.
- coco_pipe.report.decoding.build_neural_section(result, *, model=None, name='Neural Artifacts', include_tables=False, interactive=False)#
Build neural training artifacts when available.
- Parameters:
- Return type:
- coco_pipe.report.decoding.build_configuration_section(result, *, name='Configuration')#
Build the stored run configuration.
- Parameters:
result (Any)
name (str)
- Return type:
- coco_pipe.report.decoding.build_provenance_section(result, *, name='Provenance')#
Build environment and provenance metadata.
- Parameters:
result (Any)
name (str)
- Return type:
- coco_pipe.report.decoding.build_caveats_section(result, *, feature_metadata=None, name='Caveats')#
Build explicit caveats for unavailable optional diagnostics.
- Parameters:
result (Any)
feature_metadata (pandas.DataFrame | None)
name (str)
- Return type:
- coco_pipe.report.decoding.build_export_inventory_section(result, *, name='Export Inventory')#
Build a compact inventory of available result accessors.
- Parameters:
result (Any)
name (str)
- Return type:
- coco_pipe.report.decoding.DECODING_SECTION_BUILDERS: dict[str, collections.abc.Callable[Ellipsis, coco_pipe.report.core.Section]]#
- coco_pipe.report.decoding.VALID_SECTIONS#
- coco_pipe.report.decoding.build_decoding_sections(result, *, sections='default', feature_metadata=None, info=None, coords=None, verbose=None, interactive=False, on_error='warn', section_options=None)#
Build ordered decoding sections without creating or mutating a report.
- Parameters:
result (Any)
sections (str | collections.abc.Sequence[str])
feature_metadata (pandas.DataFrame | None)
info (Any)
coords (Any)
verbose (bool | None)
interactive (bool)
on_error (Literal['raise', 'warn', 'placeholder'])
section_options (collections.abc.Mapping[str, collections.abc.Mapping[str, Any]] | None)
- Return type:
- coco_pipe.report.decoding.make_decoding_report(result, *, feature_metadata=None, info=None, coords=None, sections='default', interactive=False, theme='paper', title='Decoding Report', config=None, asset_urls=None, qc_result=None, output_path=None, verbose=None, on_error='warn', section_options=None)#
Build a decoding report from one
~coco_pipe.decoding.result.ExperimentResult.With
interactive=True, chart-like sections render Plotly figures; topomap and sensor-map sections remain Matplotlib images (no Plotly twin exists).- Parameters:
result (Any)
feature_metadata (pandas.DataFrame | None)
info (Any)
coords (Any)
sections (str | collections.abc.Sequence[str])
interactive (bool)
theme (Literal['paper', 'notebook', 'poster'])
title (str)
config (dict | None)
qc_result (coco_pipe.io.quality.QCResult | None)
output_path (str | None)
verbose (bool | None)
on_error (Literal['raise', 'warn', 'placeholder'])
section_options (collections.abc.Mapping[str, collections.abc.Mapping[str, Any]] | None)
- Return type:
- coco_pipe.report.decoding.add_decoding_overview(self, result, *, name='Overview')#
- Parameters:
self (coco_pipe.report.core.Report)
result (Any)
name (str)
- Return type:
- coco_pipe.report.decoding.add_decoding_summary(self, result, name='Decoding Summary')#
- Parameters:
self (coco_pipe.report.core.Report)
result (Any)
name (str)
- Return type:
- coco_pipe.report.decoding.add_decoding_diagnostics(self, result, metric=None, model=None, name='Decoding Diagnostics')#
- Parameters:
self (coco_pipe.report.core.Report)
result (Any)
metric (str | None)
model (str | None)
name (str)
- Return type:
- coco_pipe.report.decoding.add_decoding_statistical_assessment(self, result, metric=None, model=None, name='Statistical Assessment')#
- Parameters:
self (coco_pipe.report.core.Report)
result (Any)
metric (str | None)
model (str | None)
name (str)
- Return type:
- coco_pipe.report.decoding.add_decoding_temporal(self, result, metric=None, model=None, name='Temporal Decoding')#
- Parameters:
self (coco_pipe.report.core.Report)
result (Any)
metric (str | None)
model (str | None)
name (str)
- Return type:
- coco_pipe.report.decoding.add_decoding_performance(self, result, *, metric=None, name='Performance')#
- Parameters:
self (coco_pipe.report.core.Report)
result (Any)
metric (str | None)
name (str)
- Return type:
- coco_pipe.report.decoding.add_decoding_features(self, result, *, feature_metadata=None, name='Features')#
- Parameters:
self (coco_pipe.report.core.Report)
result (Any)
feature_metadata (pandas.DataFrame | None)
name (str)
- Return type:
- coco_pipe.report.decoding.add_decoding_topomaps(self, result, *, feature_metadata=None, info=None, coords=None, name='Sensor Maps')#
- Parameters:
self (coco_pipe.report.core.Report)
result (Any)
feature_metadata (pandas.DataFrame | None)
info (Any)
coords (Any)
name (str)
- Return type:
- coco_pipe.report.decoding.add_decoding_neural_artifacts(self, result, model=None, name='Neural Artifacts')#
- Parameters:
self (coco_pipe.report.core.Report)
result (Any)
model (str | None)
name (str)
- Return type: