Commit f1e77cb3 authored by André Anjos's avatar André Anjos 💬

Merge branch '34-detection-identification-curve-cannot-be-right-on-user-s-guide' into 'master'

Resolve "Detection & Identification Curve cannot be right on user's guide"

Closes #34

See merge request !40
parents 5c508b9a bed991a0
Pipeline #13976 passed with stages
in 11 minutes and 38 seconds
......@@ -413,18 +413,19 @@ obtained in the CMC plot above.
from matplotlib import pyplot
cmc_scores = []
for probe in range(10):
for probe in range(1000):
positives = numpy.random.normal(1, 1, 1)
negatives = numpy.random.normal(0, 1, 19)
cmc_scores.append((negatives, positives))
for probe in range(10):
for probe in range(1000):
negatives = numpy.random.normal(-1, 1, 10)
cmc_scores.append((negatives, None))
bob.measure.plot.detection_identification_curve(cmc_scores, rank=1, logx=True)
pyplot.xlabel('False Alarm Rate')
pyplot.xlim([0.0001, 1])
pyplot.ylabel('Detection & Identification Rate (%)')
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment