Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.measure
Commits
549f9f6c
Commit
549f9f6c
authored
Mar 31, 2017
by
Manuel Günther
Browse files
Handled NaN values for DIR plot
parent
b06c4512
Pipeline
#8298
failed with stages
in 11 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/measure/plot.py
View file @
549f9f6c
...
...
@@ -536,6 +536,7 @@ def detection_identification_curve(cmc_scores, far_values = log_values(), rank
"""
import
numpy
import
math
from
matplotlib
import
pyplot
from
.
import
far_threshold
,
detection_identification_rate
...
...
@@ -548,7 +549,7 @@ def detection_identification_curve(cmc_scores, far_values = log_values(), rank
thresholds
=
[
far_threshold
(
negatives
,
[],
v
,
True
)
for
v
in
far_values
]
# 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
=
[
100.
*
detection_identification_rate
(
cmc_scores
,
t
,
rank
)
if
not
math
.
isnan
(
t
)
else
numpy
.
nan
for
t
in
thresholds
]
# plot curve
if
logx
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment