Skip to content

xwhy.plots.waterfall

Plot an explanation of a single prediction as a waterfall plot.

Source code in src/xwhy/plots/plots.py
351
352
353
def waterfall(result: BaseXWhyResult, **kwargs: Any) -> PlotResult:  # noqa: ANN401
    """Plot an explanation of a single prediction as a waterfall plot."""
    return viz.waterfall(result.to_explanation(), **kwargs)