Commit 211e5abe authored by Yannick DAYER's avatar Yannick DAYER

doc, click help and click options tweaks

parent 955e102d
......@@ -170,9 +170,9 @@ def split_csv_pad_per_pai(filename, regexps=[], regexp_column="attack_type"):
Returns
-------
tuple (positives, {'pai_name': negatives})
A tuple containing pos scores and a dict of negative scores mapping PAIs to
their scores.
tuple ([positives], {'pai_name': [negatives]})
A tuple containing positive scores and a dict of negative scores mapping PAIs
names to their respective scores.
Raises
------
......
......@@ -178,7 +178,7 @@ def gen_pad_csv_scores(
multiple=True,
)
@click.option("-c", "--n-clients", default=10, type=click.INT, show_default=True)
@click.option("-n", "--n-samples", default=2, type=click.INT, show_default=True)
@click.option("-s", "--n-samples", default=2, type=click.INT, show_default=True)
@click.option("-a", "--n-attacks", default=2, type=click.INT, show_default=True)
@verbosity_option()
@click.pass_context
......@@ -195,7 +195,7 @@ def gen(
Example:
bob pad gen results/generated/scores-dev.csv
bob pad gen results/generated/scores-dev.csv -a 3 -ma 2 -ma 5 -ma 7 -mm 8
"""
numpy.random.seed(0)
gen_pad_csv_scores(
......
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