band_conditioned_decision_drivers
def band_conditioned_decision_drivers(decisions: list[dict], *, y=None, target_band: str = 'all', cols: int = 3, top_codes: int = 10, point_size: int = 6, alpha_good: float = 0.65, alpha_bad: float = 0.75, y_jitter: float = 0.34, xj_base: float = 0.06, xj_max: float = 0.18, seed: int = 0, colors: dict | None = None, color_by: str = 'auto')
from compileml.viz import band_conditioned_decision_drivers
Band-conditioned decision drivers (faceted beeswarm by band).
Original design, payload-driven: one panel per band, each ranking its own top reason codes by mean absolute impact. Returns (figure, axes).
Parameters#
| Name | Type | Default | Kind |
|---|---|---|---|
| decisions | list[dict] | required | positional |
| y | — | None | keyword-only |
| target_band | str | 'all' | keyword-only |
| cols | int | 3 | keyword-only |
| top_codes | int | 10 | keyword-only |
| point_size | int | 6 | keyword-only |
| alpha_good | float | 0.65 | keyword-only |
| alpha_bad | float | 0.75 | keyword-only |
| y_jitter | float | 0.34 | keyword-only |
| xj_base | float | 0.06 | keyword-only |
| xj_max | float | 0.18 | keyword-only |
| seed | int | 0 | keyword-only |
| colors | dict | None | None | keyword-only |
| color_by | str | 'auto' | keyword-only |
Raises#
- ValueError
Read from the function body and the private helpers it calls, not inferred. A function that raises nothing has no section here.