mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-07 01:48:51 -06:00
Objective: Rewrite sample_evaluate
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user