Separation PlotΒΆ

../../_images/mpl_plot_separation.png

Python source code: [download source: mpl_plot_separation.py]

API documentation: plot_separation()

import matplotlib.pyplot as plt

import arviz as az

az.style.use("arviz-darkgrid")

idata = az.load_arviz_data("classification10d")

az.plot_separation(idata=idata, y="outcome", y_hat="outcome", figsize=(8, 1))

plt.show()