holisticai.robustness.plots#

Binary Classification

plot_2d

Plots a 2D scatter plot of a dataset, with options to highlight or exclusively show a subset of points.

plot_label_and_prediction

Plots a 2D scatter plot of a dataset, displaying both the true labels (y) and the predicted labels (y_pred) with a slight vertical offset for distinction.

plot_neighborhood

Plots a 2D scatter plot of the dataset, highlighting the neighborhood of specific points of interest and calculating accuracy over the selected neighbors.

plot_adp_and_adf

Plots the Accuracy Degradation Profile (ADP) in a 2D plot, showing the percentage of samples above the threshold (ADP) on the vertical axis and dataset size (size_factor) on the horizontal axis, with the x-axis reversed.