Commit 9ff51b21 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

Help parameter customization

parent 83602a29
Pipeline #21465 canceled with stage
in 7 seconds
...@@ -14,7 +14,7 @@ SCORE_FORMAT = ( ...@@ -14,7 +14,7 @@ SCORE_FORMAT = (
CRITERIA = ('eer', 'min-hter', 'bpcer20') CRITERIA = ('eer', 'min-hter', 'bpcer20')
@click.command() @click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.argument('outdir') @click.argument('outdir')
@click.option('-mm', '--mean-match', default=10, type=click.FLOAT, @click.option('-mm', '--mean-match', default=10, type=click.FLOAT,
show_default=True) show_default=True)
......
...@@ -68,7 +68,7 @@ def write_scores_to_file(neg, pos, filename, attack=False): ...@@ -68,7 +68,7 @@ def write_scores_to_file(neg, pos, filename, attack=False):
f.write('x y foo %f\n' % i) f.write('x y foo %f\n' % i)
@click.command() @click.command(context_settings=common_options.CONTEXT_SETTINGS)
@click.argument('outdir') @click.argument('outdir')
@click.option('--mean-gen', default=7, type=FLOAT, show_default=True) @click.option('--mean-gen', default=7, type=FLOAT, show_default=True)
@click.option('--mean-zei', default=3, type=FLOAT, show_default=True) @click.option('--mean-zei', default=3, type=FLOAT, show_default=True)
...@@ -101,7 +101,7 @@ def gen(outdir, mean_gen, mean_zei, mean_pa): ...@@ -101,7 +101,7 @@ def gen(outdir, mean_gen, mean_zei, mean_pa):
attack=True) attack=True)
@click.command() @click.command(context_settings=common_options.CONTEXT_SETTINGS)
@common_options.scores_argument(min_arg=2, nargs=-1) @common_options.scores_argument(min_arg=2, nargs=-1)
@common_options.output_plot_file_option(default_out='vuln_roc.pdf') @common_options.output_plot_file_option(default_out='vuln_roc.pdf')
@common_options.legends_option() @common_options.legends_option()
...@@ -141,7 +141,7 @@ def roc(ctx, scores, real_data, **kwargs): ...@@ -141,7 +141,7 @@ def roc(ctx, scores, real_data, **kwargs):
process.run() process.run()
@click.command() @click.command(context_settings=common_options.CONTEXT_SETTINGS)
@common_options.scores_argument(min_arg=2, nargs=-1) @common_options.scores_argument(min_arg=2, nargs=-1)
@common_options.output_plot_file_option(default_out='vuln_det.pdf') @common_options.output_plot_file_option(default_out='vuln_det.pdf')
@common_options.legends_option() @common_options.legends_option()
...@@ -181,7 +181,7 @@ def det(ctx, scores, real_data, **kwargs): ...@@ -181,7 +181,7 @@ def det(ctx, scores, real_data, **kwargs):
process.run() process.run()
@click.command() @click.command(context_settings=common_options.CONTEXT_SETTINGS)
@common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1) @common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1)
@common_options.output_plot_file_option(default_out='vuln_epc.pdf') @common_options.output_plot_file_option(default_out='vuln_epc.pdf')
@common_options.legends_option() @common_options.legends_option()
...@@ -225,7 +225,7 @@ def epc(ctx, scores, **kwargs): ...@@ -225,7 +225,7 @@ def epc(ctx, scores, **kwargs):
process.run() process.run()
@click.command() @click.command(context_settings=common_options.CONTEXT_SETTINGS)
@common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1) @common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1)
@common_options.output_plot_file_option(default_out='vuln_epsc.pdf') @common_options.output_plot_file_option(default_out='vuln_epsc.pdf')
@common_options.legends_option() @common_options.legends_option()
...@@ -298,7 +298,7 @@ def epsc(ctx, scores, criteria, var_param, fixed_param, three_d, sampling, ...@@ -298,7 +298,7 @@ def epsc(ctx, scores, criteria, var_param, fixed_param, three_d, sampling,
process.run() process.run()
@click.command() @click.command(context_settings=common_options.CONTEXT_SETTINGS)
@common_options.scores_argument(nargs=-1, min_arg=2) @common_options.scores_argument(nargs=-1, min_arg=2)
@common_options.output_plot_file_option(default_out='vuln_hist.pdf') @common_options.output_plot_file_option(default_out='vuln_hist.pdf')
@common_options.n_bins_option() @common_options.n_bins_option()
...@@ -355,7 +355,7 @@ def hist(ctx, scores, evaluation, **kwargs): ...@@ -355,7 +355,7 @@ def hist(ctx, scores, evaluation, **kwargs):
process.run() process.run()
@click.command() @click.command(context_settings=common_options.CONTEXT_SETTINGS)
@common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1) @common_options.scores_argument(min_arg=2, force_eval=True, nargs=-1)
@common_options.output_plot_file_option(default_out='fmr_iapmr.pdf') @common_options.output_plot_file_option(default_out='fmr_iapmr.pdf')
@common_options.legends_option() @common_options.legends_option()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment