qis.plot_model_layer_ewma_sharpe_bridge

qis.plot_model_layer_ewma_sharpe_bridge(attribution, model_name='Model', benchmark_label='Benchmark', labels=None, colors=None, detailed_mode=True, title=None, ax=None)[source]

Plot additive current EWMA log-return Sharpe contributions.

Parameters:
  • attribution (ModelLayerEwmaRegressionAttribution) – Current EWMA regression attribution computed by QIS.

  • model_name (str) – Model name used in the title and endpoint labels.

  • benchmark_label (str) – Display label for the benchmark reference bar.

  • labels (Optional[Mapping[str, str]]) – Optional semantic label overrides; keys are documented by the return bridge.

  • colors (Optional[Mapping[str, str]]) – Optional semantic colour overrides; keys are documented by the return bridge.

  • detailed_mode (bool) – Whether to draw the title, subtitle and methodology note.

  • title (Optional[str]) – Detailed-mode title. None uses the standard risk-and-signal title.

  • ax (Optional[plt.Axes]) – Existing axis. None creates a new report-sized figure.

Returns:

The created figure, or None when drawing on a supplied axis.

Raises:
  • TypeError – If attribution has an unsupported type.

  • ValueError – If required labelled inputs or estimator settings are missing or invalid.

  • RuntimeError – If the common-denominator Sharpe bridge does not reconcile.

Return type:

Optional[Figure]