![]() |
SqueezeBrains SDK 1.18
|
Metrics calculated on counters. More...
#include <sb.h>
Data Fields | |
| float | accuracy |
| accuracy More... | |
| float | recall |
| recall More... | |
| float | precision |
| precision More... | |
| float | f1_score |
| f1-score More... | |
| float | specificity |
| specificity More... | |
Metrics calculated on counters.
Depending on the context, counters can be referred to samples, blobs, pixels or images.
| float sb_t_metrics::accuracy |
accuracy
In general equal to accuracy = (tp + tn) / (tp + tn + fp + fn)
In case of sb_t_stat::metrics it is equal to accuracy = (good + no_good) / (good + no_good + overkill + escape)
| float sb_t_metrics::f1_score |
f1-score
In general equal to f1-score = 2*tp / (2*tp + fn + fp)
In case of sb_t_stat::metrics it is equal to f1-score = (2 * no_good) / (2 * no_good + overkill + escape).
It is also known as Sorensen-Dice coefficient (or more simply as Dice) and is widely used in pixel segmentation task to evaluate the similarity between ground truth and prediction.
| float sb_t_metrics::precision |
precision
In general equal to precision = tp / (tp + fp)
In case of sb_t_stat::metrics it is equal to precision = no_good / (no_good + overkill) .
| float sb_t_metrics::recall |
recall
In general equal to recall = tp / (tp + fn)
In case of sb_t_stat::metrics it is equal to recall = no_good / (no_good + escape)
| float sb_t_metrics::specificity |
specificity
In general equal to specificity = tn / (tn + fp)
In case of sb_t_stat::metrics it is equal to specificity = good / (good + overkill)