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

Correctly handled NaN values in DIR plot

parent 10846a47
Branches
Tags
1 merge request!39Resolve "FAR and FRR thresholds are computed even when there is no data support"
Pipeline #
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment