deephyper.cli.utils.add_arguments_from_signature#
- deephyper.cli.utils.add_arguments_from_signature(parser, obj, prefix='', exclude=[])[source]#
Add arguments to parser base on obj default keyword parameters.
- Parameters:
parser (ArgumentParser)) – the argument parser to which we want to add arguments.
obj (type) – the class from which we want to extract default parameters for the constructor.
prefix (str, Optional) – prefix to add to created parser arguments.
exclude (list, Optional) – list of arguments to be excluded.