Skip to content
Snippets Groups Projects
Commit bed991a0 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed curve to show values between [0,1]

parent c970a982
No related branches found
No related tags found
1 merge request!40Resolve "Detection & Identification Curve cannot be right on user's guide"
Pipeline #
...@@ -413,18 +413,19 @@ obtained in the CMC plot above. ...@@ -413,18 +413,19 @@ obtained in the CMC plot above.
from matplotlib import pyplot from matplotlib import pyplot
cmc_scores = [] cmc_scores = []
for probe in range(10): for probe in range(1000):
positives = numpy.random.normal(1, 1, 1) positives = numpy.random.normal(1, 1, 1)
negatives = numpy.random.normal(0, 1, 19) negatives = numpy.random.normal(0, 1, 19)
cmc_scores.append((negatives, positives)) cmc_scores.append((negatives, positives))
for probe in range(10): for probe in range(1000):
negatives = numpy.random.normal(-1, 1, 10) negatives = numpy.random.normal(-1, 1, 10)
cmc_scores.append((negatives, None)) cmc_scores.append((negatives, None))
bob.measure.plot.detection_identification_curve(cmc_scores, rank=1, logx=True) bob.measure.plot.detection_identification_curve(cmc_scores, rank=1, logx=True)
pyplot.xlabel('False Alarm Rate') pyplot.xlabel('False Alarm Rate')
pyplot.xlim([0.0001, 1])
pyplot.ylabel('Detection & Identification Rate (%)') pyplot.ylabel('Detection & Identification Rate (%)')
pyplot.ylim([0,100]) pyplot.ylim([0,1])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment