src.evaluation_metric.format_accuracy_metric¶
- src.evaluation_metric.format_accuracy_metric(ps: torch.Tensor, rs: torch.Tensor, f1s: torch.Tensor) str [source]¶
Helper function for formatting precision, recall and f1 score metric
- Parameters
ps – tensor containing precisions
rs – tensor containing recalls
f1s – tensor containing f1 scores
- Returns
a formatted string with mean and variance of precision, recall and f1 score
Example output:
p = 0.7837±0.2799, r = 0.7837±0.2799, f1 = 0.7837±0.2799