Module mimir.plot_utils
Utilities related to plotting.
Functions
def save_f1_histogram(f1_scores, save_folder)
-
Function for saving F1-score histograms.
def save_ll_histograms(experiments, save_folder)
-
Save the histogram of log likelihoods in two side-by-side plots, one for real and real perturbed, and one for sampled and sampled perturbed.
def save_llr_histograms(experiments, save_folder)
-
Save the histograms of log likelihood ratios in two side-by-side plots, one for real and real perturbed, and one for sampled and sampled perturbed.
def save_roc_curves(experiments, save_folder, model_name, neighbor_model_name: str = None)
-
Save the ROC curve for each experiment, given a list of output dictionaries, one for each experiment, using colorblind-friendly colors.