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.pad.base
Commits
0cea3009
Commit
0cea3009
authored
Apr 13, 2018
by
Theophile GENTILHOMME
Browse files
Add printed information while generating vuln histogram
parent
cd6a04d2
Pipeline
#18946
failed with stage
in 55 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/script/figure.py
View file @
0cea3009
'''Runs error analysis on score sets, outputs metrics and plots'''
import
pkg_resources
# to make sure bob gets imported properly
import
logging
import
click
import
numpy
as
np
import
bob.measure.script.figure
as
measure_figure
...
...
@@ -187,7 +189,14 @@ class HistVuln(measure_figure.Hist):
ax2
.
grid
(
False
)
real_data
=
True
if
'real_data'
not
in
self
.
_ctx
.
meta
else
\
self
.
_ctx
.
meta
[
'real_data'
]
far
,
frr
=
farfrr
(
neg
[
0
],
pos
[
0
],
threshold
)
_iapmr_plot
(
neg
[
1
],
threshold
,
iapmr
,
real_data
=
real_data
)
click
.
echo
(
'HTER (t=%.2g) = %.2f%%; IAPMR = %.2f%%'
%
(
threshold
,
50
*
(
far
+
frr
),
100
*
iapmr
)
)
ax2
.
set_ylabel
(
"IAPMR (%)"
,
color
=
'C3'
)
ax2
.
tick_params
(
axis
=
'y'
,
colors
=
'red'
)
...
...
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