Skip to content

Commit dc67234

Browse files
committed
minor fixes cli
1 parent dd3956d commit dc67234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

delphi/log/result_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def compute_confusion(df, threshold=0.5):
173173
return dict(true_positives=tp, true_negatives=tn, false_positives=fp, false_negatives=fn, total_positives=act.sum(), total_negatives=(~act).sum())
174174

175175
def compute_classification_metrics(conf):
176-
tp, tn, fp, fn = conf["true_positives"], conf["true_negatives"], conf["false_positives"], conf["false_negatives"]
176+
tp, tn, fp, _ = conf["true_positives"], conf["true_negatives"], conf["false_positives"], conf["false_negatives"]
177177
pos, neg = conf["total_positives"], conf["total_negatives"]
178178
acc = ((tp/pos if pos else 0) + (tn/neg if neg else 0)) / 2
179179
prec = tp/(tp+fp) if (tp+fp) else 0

0 commit comments

Comments
 (0)