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

Commit ba290f2

Browse files
authored
Update zeppelin.py
1 parent 8185f8e commit ba290f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

splicemachine/ml/zeppelin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ def get_results(self, output_type='dataframe'):
187187
"FNR": float(FN) / (FN + TP),
188188
"ACC": float(TP + TN) / (TP + FN + FP + TN),
189189
"F1": float((2 * TP)) / ((2 * TP) + FP + FN),
190-
"MCC": float((TP * TN) - (FP * FN)) / (
191-
np.sqrt((TP + FP) * (TP + FN) * (TN + FP) * (TN + FN)))
190+
"MCC": float((TP*TN) - (FP*FN)) / (np.sqrt((TP+FP)*(TP+FN)*(TN+FP)*(TN+FN)))
192191
}
193192

194193
if output_type == 'dict':

0 commit comments

Comments
 (0)