confusion_matrix_plot¶
- rubin_sim.maf.run_comparison.confusion_matrix_plot(comparison_matrix, xlabel, ylabel, run_name, t_e_range, save_folder)¶
Plots a confusion matrix type plot comparing two metric types.
- Parameters:
- comparison_matrixnumpy array
Array comparing two metric types (A and B) with the following shape: [[(Yes A and Yes B), (Yes A and No B)], [(No A and Yes B), (No A and No B)]] where Yes A and Yes B are the number of events that pass both the A and B criteria.
- xlabelstring
Sring of xlabel (also used in file name of figure)
- ylabelstring
Sring of ylabel (also used in file name of figure)
- run_namestring
Name of the OpSim run that was used in the metric (used in labels and file name)
- t_e_rangestring
String of the range of the tE (used in labels and file name)
- save_folderstring
String of folder name to save figures