MCPcopy Create free account
hub / github.com/Open-Quant/openquant / prepare_regime_payload

Function prepare_regime_payload

python/openquant/viz.py:72–86  ·  view source on GitHub ↗
(
    timestamps: Sequence[str],
    score: Sequence[float],
    threshold: float = 0.0,
)

Source from the content-addressed store, hash-verified

70 right_values: Sequence[float],
71 left_name: str = "left",
72 right_name: str = "right",
73) -> dict[str, Any]:
74 """Build a grouped-bar payload comparing two sets of importances.
75
76 The two sides are passed through as given (not sorted or aligned by label), so the
77 label lists may differ, for example raw features against principal components.
78
79 Parameters
80 ----------
81 left_labels : Sequence[str]
82 Labels of the left series.
83 left_values : Sequence[float]
84 Values of the left series.
85 right_labels : Sequence[str]
86 Labels of the right series.
87 right_values : Sequence[float]
88 Values of the right series.
89 left_name : str, default "left"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected