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
dcb6e037
Commit
dcb6e037
authored
Jun 28, 2018
by
Theophile GENTILHOMME
Browse files
Fix typo
parent
8018f199
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/script/pad_figure.py
View file @
dcb6e037
...
...
@@ -11,8 +11,7 @@ class Metrics(bio_figure.Metrics):
'''Compute metrics from score files'''
def
__init__
(
self
,
ctx
,
scores
,
evaluation
,
func_load
,
names
=
(
'FtA'
,
'APCER'
,
'BPCER'
,
'FAR'
,
'FRR'
,
'ACER=(APCER + '
'BPCER) / 2'
)):
names
=
(
'FtA'
,
'APCER'
,
'BPCER'
,
'FAR'
,
'FRR'
,
'HTER'
)):
super
(
Metrics
,
self
).
__init__
(
ctx
,
scores
,
evaluation
,
func_load
,
names
)
...
...
@@ -47,7 +46,7 @@ class Hist(measure_figure.Hist):
def
_setup_hist
(
self
,
neg
,
pos
):
self
.
_title_base
=
'PAD'
self
.
_density_hist
(
pos
[
0
],
n
=
0
,
label
=
'Bona
F
ide'
,
color
=
'C1'
pos
[
0
],
n
=
0
,
label
=
'Bona
f
ide'
,
color
=
'C1'
)
self
.
_density_hist
(
neg
[
0
],
n
=
1
,
label
=
'Presentation attack'
,
alpha
=
0.4
,
color
=
'C7'
,
...
...
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