Commit 7eccfdd5 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME

Change list option

parent eb69a6b5
Pipeline #19807 passed with stage
......@@ -52,7 +52,7 @@ def metrics(ctx, scores, evaluation, **kwargs):
@common_options.output_plot_file_option(default_out='roc.pdf')
@common_options.eval_option()
@common_options.points_curve_option()
@common_options.axes_val_option(dflt=[1e-4, 1, 1e-4, 1])
@common_options.axes_val_option(dflt='1e-4,1,1e-4,1')
@common_options.min_far_option()
@common_options.x_rotation_option()
@common_options.x_label_option()
......@@ -95,7 +95,7 @@ def roc(ctx, scores, evaluation, **kwargs):
@common_options.legend_loc_option(dflt='upper-right')
@common_options.sep_dev_eval_option()
@common_options.eval_option()
@common_options.axes_val_option(dflt=[0.01, 95, 0.01, 95])
@common_options.axes_val_option(dflt='0.01,95,0.01,95')
@common_options.min_far_option()
@common_options.x_rotation_option(dflt=45)
@common_options.x_label_option()
......
......@@ -140,13 +140,13 @@ def thresholds_option(**kwargs):
)
def lines_at_option(**kwargs):
def lines_at_option(dflt='1e-3', **kwargs):
'''Get option to draw const far line'''
return list_float_option(
name='lines-at', short_name='la',
desc='If given, draw vertical lines at the given axis positions. '
'You can provide multiple values separated with a comma (,).',
nitems=None, dflt='1e-3', **kwargs
'You cdfltple values separated with a comma (,).',
nitems=None, dflt=dflt, **kwargs
)
......
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