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
22047462
Commit
22047462
authored
May 30, 2018
by
Theophile GENTILHOMME
Browse files
[script][vuln_commands] Add prefix aliasing and remove vuln command
group Vuln command group is defined in vuln.py
parent
852d4da5
Pipeline
#20623
passed with stage
in 14 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/base/script/vuln_commands.py
View file @
22047462
...
...
@@ -11,7 +11,8 @@ from click.types import FLOAT
from
bob.measure.script
import
common_options
from
bob.extension.scripts.click_helper
import
(
verbosity_option
,
open_file_mode_option
,
bool_option
)
bool_option
,
AliasedGroup
)
from
bob.core
import
random
from
bob.io.base
import
create_directories_safe
from
bob.bio.base.score
import
load
...
...
@@ -23,13 +24,6 @@ NUM_PA = 5000
@
with_plugins
(
pkg_resources
.
iter_entry_points
(
'bob.vuln.cli'
))
@
click
.
group
()
def
vuln
():
"""Presentation Vulnerability related commands."""
pass
def
gen_score_distr
(
mean_gen
,
mean_zei
,
mean_pa
,
sigma_gen
=
1
,
sigma_zei
=
1
,
sigma_pa
=
1
):
...
...
@@ -498,6 +492,8 @@ def evaluate(ctx, scores, **kwargs):
ctx
.
forward
(
hist
)
# use class defaults plot settings
click
.
echo
(
"Computing DET..."
)
ctx
.
forward
(
det
)
# use class defaults plot settings
click
.
echo
(
"Computing ROC..."
)
ctx
.
forward
(
roc
)
# use class defaults plot settings
click
.
echo
(
"Computing EPC..."
)
ctx
.
forward
(
epc
)
# use class defaults plot settings
click
.
echo
(
"Computing EPSC..."
)
...
...
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