locpix.visualise.performance.generate_binary_conf_matrix#
- generate_binary_conf_matrix(tn, fp, fn, tp, classes, saveloc)[source]#
Generates a confusion matrix and saves it
- Parameters:
tn (int) – Number of true negatives
fp (int) – Number of false positives
fn (int) – Number of false negatives
tp (int) – Number of true positives
classes (list) – List of classes associated with each label - assumes labels are ordered 0, 1 and that 0 is negative and 1 is positive
saveloc (string) – Location to save the confusion matrix to
- Returns:
None