From 46251db1e2c175740ec89d08973b59bb2f38c18e Mon Sep 17 00:00:00 2001 From: Brandon Amos Date: Mon, 11 Jan 2016 08:11:37 -0500 Subject: [PATCH] lfw: Output accuracy. --- evaluation/lfw.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/evaluation/lfw.py b/evaluation/lfw.py index ec853eb..76bf6c6 100755 --- a/evaluation/lfw.py +++ b/evaluation/lfw.py @@ -175,8 +175,10 @@ def classifyExp(workDir, pairs, embeddings): accuracies.append(accuracy) f.write('{}, {:0.2f}, {:0.2f}\n'.format( idx, bestThresh, accuracy)) - f.write('\navg, {:0.4f} +/- {:0.4f}\n'.format(np.mean(accuracies), - np.std(accuracies))) + avg = np.mean(accuracies) + std = np.std(accuracies) + f.write('\navg, {:0.4f} +/- {:0.4f}\n'.format(avg, std)) + print(' + {:0.4f}'.format(avg)) def getAUC(fprs, tprs):