Skip to content
This repository was archived by the owner on Apr 15, 2022. It is now read-only.

Commit a7c25bf

Browse files
authored
switched bad metrics in confusion
1 parent ba290f2 commit a7c25bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splicemachine/ml/zeppelin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ def input(self, predictions_dataframe):
155155
pred_v_lab.prediction == 1)].count()) # Add confusion stats
156156
self.avg_tn.append(
157157
pred_v_lab[(pred_v_lab.label == 0) & (pred_v_lab.prediction == 0)].count())
158-
self.avg_fp.append(
159-
pred_v_lab[(pred_v_lab.label == 1) & (pred_v_lab.prediction == 0)].count())
160158
self.avg_fn.append(
159+
pred_v_lab[(pred_v_lab.label == 1) & (pred_v_lab.prediction == 0)].count())
160+
self.avg_fp.append(
161161
pred_v_lab[(pred_v_lab.label == 0) & (pred_v_lab.prediction == 1)].count())
162162

163163
if self.confusion_matrix:

0 commit comments

Comments
 (0)