summaryrefslogtreecommitdiffstats
path: root/data/face-frame-recognition-accuracy.py
diff options
context:
space:
mode:
authorJon Whiteaker <jbw@berkeley.edu>2012-03-02 19:27:28 -0800
committerJon Whiteaker <jbw@berkeley.edu>2012-03-02 19:27:58 -0800
commit6e5ae1e495ceb9b148654d278a62fcf8c3374229 (patch)
treeb4fa9e7535384930cf459d38588d4a91c47bb5de /data/face-frame-recognition-accuracy.py
parentdab0508530bb34b0ff7634bba43b9345428f4c90 (diff)
downloadkinect-6e5ae1e495ceb9b148654d278a62fcf8c3374229.tar.gz
face mods
Diffstat (limited to 'data/face-frame-recognition-accuracy.py')
-rwxr-xr-xdata/face-frame-recognition-accuracy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/face-frame-recognition-accuracy.py b/data/face-frame-recognition-accuracy.py
index 48b6141..7c53366 100755
--- a/data/face-frame-recognition-accuracy.py
+++ b/data/face-frame-recognition-accuracy.py
@@ -40,12 +40,12 @@ for line in open(sys.argv[2]):
runs[prun] = recs.index(max(recs))+1
recs = map(lambda x:0,users)
recs[users.index(rec)] += 1
- maxc = float(line[7])/100.0
+ maxc = math.log(float(line[7])/100.0)
i = 9
cvec = []
while len(cvec) < len(users)-1:
if i < len(line):
- cvec += [float(line[i])/100.0 - maxc]
+ cvec += [math.log(float(line[i])/100.0) - maxc]
else:
cvec += [-maxc]
conf[run] = math.log(np.sum(np.exp(cvec)))