Objective: Rewrite sample_evaluate

This commit is contained in:
2021-04-03 18:37:03 -05:00
parent 7af22bd16b
commit 185b95118a
5 changed files with 59 additions and 95 deletions

View File

@@ -4,7 +4,12 @@
from typing import Dict
def classifier_evaluation_dict(tp: int, tn: int, fp: int, fn: int) -> Dict:
def classifier_evaluation_dict(
tp: int,
tn: int,
fp: int,
fn: int,
) -> Dict[str, float]:
p = tp + fn
n = fp + tn
d: Dict = {