locpix.evaluate.metrics.mean_metrics#
- mean_metrics(results, labels)[source]#
Calculate the mean metrics
- Parameters:
results (dict) – Nested dictionary where each key is a label representing another dictionary containing the number of TP, TN, FP and FN e.g. results[2][“TP”] is number of true positives for label 2
labels (list) – List of labels