Separation Plot#
API documentation: plot_separation()
Python source code: [download source: matplotlib/mpl_plot_separation.py]
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()
Python source code: [download source: bokeh/bokeh_plot_separation.py]
import arviz as az
idata = az.load_arviz_data("classification10d")
ax = az.plot_separation(idata=idata, y="outcome", y_hat="outcome", figsize=(8, 1), backend="bokeh")