aggregating_kpis
Description
Implementation of KPIs that cannot be computed on a batch level. They aggregate the result over all batches and can return an aggregated result, if requested.
@author: Christian Wirth
Classes
Binary accuracy. |
|
Abstract base class for all aggregating kpis, meaning they can not be computed on batch level, but need to be aggregated over batches. |
|
Approximate the mean in the data by binning the values. |
|
Approximate the standard deviation in the data by binning the values. |
|
Approximate the variance in the data by binning the values. |
|
Calibration Curve: Shows the difference between true positive rate and the average predicted confidence over n_bins. |
|
Abstract base class for all confusion matrix based metrics. |
|
Expected calibration error. |
|
Find the extreme value of all output tensor entries over all batches (ignoring labels). |
|
Binary F1-score. |
|
Collect a histogram of the model output values. |
|
Find the max value within all batches. |
|
Calculate the mean of all output tensor entries (ignoring labels). |
|
Find the max value within all batches. |
|
Binary negative predictive value. |
|
Binary precision. |
|
Approximated precision / recall curve. |
|
Binary recall (resp. |
|
Calc set intersection over union (IoU) value for a batch of outputs. |
|
Create a curve showing the setIoU value for multiple thresholds. |
|
Binary specificity (resp. |
|
Calculate the standard deviation of all output tensor entries (ignoring labels). |
|
Calculate the variance of all output tensor entries (ignoring labels). |
Functions
|
Given named metric functions return the keys of such behaving like an AggregatingKpi. |
|
Yield sensible values in case of division by zero. |