Commit cba0017c authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'hter' into 'master'

Compute HTER using FMR and FNMR

Closes #48

See merge request !81
parents c973cb27 ae3b0e35
Pipeline #21409 passed with stages
in 28 minutes and 31 seconds
......@@ -197,9 +197,9 @@ class Metrics(MeasureBase):
def _numbers(self, neg, pos, threshold, fta):
from .. import farfrr
fmr, fnmr = farfrr(neg, pos, threshold)
hter = (fmr + fnmr) / 2.0
far = fmr * (1 - fta)
frr = fta + fnmr * (1 - fta)
hter = (far + frr) / 2.0
ni = neg.shape[0] # number of impostors
fm = int(round(fmr * ni)) # number of false accepts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment