Commit a92c5e3e authored by Manuel Günther's avatar Manuel Günther
Browse files

Correctly handled NaN values in DIR plot

parent 10846a47
Pipeline #11897 passed with stages
in 17 minutes and 39 seconds
......@@ -554,8 +554,8 @@ def detection_identification_curve(cmc_scores, far_values=log_values(), rank=1,
# compute detection and identification rate based on the thresholds for
# the given rank
rates = [
100. * detection_identification_rate(cmc_scores, t, rank) for t in thresholds]
rates = [detection_identification_rate(cmc_scores, t, rank)
if not math.isnan(t) else numpy.nan for t in thresholds]
# plot curve
if logx:
Supports Markdown
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