Skip to content
Snippets Groups Projects
Commit 2b8180cc authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

Add option; change guide

parent a2c99938
No related branches found
No related tags found
1 merge request!146Add 4-5-col files related functionalities and add click commands
Pipeline #
...@@ -67,6 +67,7 @@ def metrics(ctx, scores, evaluation, **kargs): ...@@ -67,6 +67,7 @@ def metrics(ctx, scores, evaluation, **kargs):
@click.command() @click.command()
@common_options.scores_argument(nargs=-1) @common_options.scores_argument(nargs=-1)
@common_options.title_option()
@common_options.legends_option() @common_options.legends_option()
@common_options.sep_dev_eval_option() @common_options.sep_dev_eval_option()
@common_options.output_plot_file_option(default_out='roc.pdf') @common_options.output_plot_file_option(default_out='roc.pdf')
...@@ -111,6 +112,7 @@ def roc(ctx, scores, evaluation, **kargs): ...@@ -111,6 +112,7 @@ def roc(ctx, scores, evaluation, **kargs):
@click.command() @click.command()
@common_options.scores_argument(nargs=-1) @common_options.scores_argument(nargs=-1)
@common_options.title_option()
@common_options.output_plot_file_option(default_out='det.pdf') @common_options.output_plot_file_option(default_out='det.pdf')
@common_options.legends_option() @common_options.legends_option()
@common_options.x_label_option() @common_options.x_label_option()
...@@ -153,6 +155,7 @@ def det(ctx, scores, evaluation, **kargs): ...@@ -153,6 +155,7 @@ def det(ctx, scores, evaluation, **kargs):
@click.command() @click.command()
@common_options.scores_argument(min_arg=1, force_eval=True, nargs=-1) @common_options.scores_argument(min_arg=1, force_eval=True, nargs=-1)
@common_options.title_option()
@common_options.output_plot_file_option(default_out='epc.pdf') @common_options.output_plot_file_option(default_out='epc.pdf')
@common_options.legends_option() @common_options.legends_option()
@common_options.points_curve_option() @common_options.points_curve_option()
...@@ -183,6 +186,7 @@ def epc(ctx, scores, **kargs): ...@@ -183,6 +186,7 @@ def epc(ctx, scores, **kargs):
@click.command() @click.command()
@common_options.scores_argument(nargs=-1) @common_options.scores_argument(nargs=-1)
@common_options.title_option()
@common_options.legends_option() @common_options.legends_option()
@common_options.sep_dev_eval_option() @common_options.sep_dev_eval_option()
@common_options.output_plot_file_option(default_out='cmc.pdf') @common_options.output_plot_file_option(default_out='cmc.pdf')
...@@ -224,6 +228,7 @@ def cmc(ctx, scores, evaluation, **kargs): ...@@ -224,6 +228,7 @@ def cmc(ctx, scores, evaluation, **kargs):
@click.command() @click.command()
@common_options.scores_argument(nargs=-1) @common_options.scores_argument(nargs=-1)
@common_options.title_option()
@common_options.legends_option() @common_options.legends_option()
@common_options.sep_dev_eval_option() @common_options.sep_dev_eval_option()
@common_options.output_plot_file_option(default_out='cmc.pdf') @common_options.output_plot_file_option(default_out='cmc.pdf')
......
...@@ -170,7 +170,7 @@ min.HTER) on a development set and apply it on an evaluation set, just do: ...@@ -170,7 +170,7 @@ min.HTER) on a development set and apply it on an evaluation set, just do:
.. code-block:: sh .. code-block:: sh
$ bob bio metrics {dev,test}-4col.txt --titltes ExpA --criterion hter $ bob bio metrics {dev,test}-4col.txt --legends ExpA --criterion hter
[Min. criterion: HTER ] Threshold on Development set `ExpA`: -4.830500e-03 [Min. criterion: HTER ] Threshold on Development set `ExpA`: -4.830500e-03
====== ====================== ================= ====== ====================== =================
...@@ -194,7 +194,7 @@ For example: ...@@ -194,7 +194,7 @@ For example:
.. code-block:: sh .. code-block:: sh
bob bio metrics {dev,test}-4col.txt --titltes ExpA --criterion cllr bob bio metrics {dev,test}-4col.txt --legends ExpA --criterion cllr
====== ====================== ================ ====== ====================== ================
Computing Cllr and minCllr... Computing Cllr and minCllr...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment