find_filtering_threshold2(stats2e,
maxFAR=0.002)
| source code
|
Use the thresholded classifier as above. If we wish false acceptance rate <= maxFAR, what is the smallest threshold?
- Input:
stats2e: per-element statistics of 2*N classes
maxFAR: the value of 'maxFAR'
- Output:
- b: a numpy.array of shape (N,2) to hold the results where
- b[i][0]: a threshold that
maximize DR(b) = sf((b-mu[i*2+1])/sigma[i*2+1])
w.r.t. b
subject to FAR(b) = sf((b-mu[i*2])/sigma[i*2]) <= maxFAR
where sf(.) is w.r.t. the normalized gaussian distribution
b[i][1] = 1-DR(b[i][0]), the estimated false rejection rate
- Requirement:
mu[i*2] <= mu[i*2+1] for all i = 0..N-1
|