Example #1
0
 def from_parser_args(cls,
                      parser_args: argparse.Namespace) -> 'ChainConfig':
     """
     Helper function for initializing from the namespace object produced by
     an ``argparse.ArgumentParser``
     """
     constructor_kwargs = construct_chain_config_params(parser_args)
     return cls(**constructor_kwargs)
Example #2
0
 def from_parser_args(cls,
                      parser_args: argparse.Namespace) -> 'ChainConfig':
     constructor_kwargs = construct_chain_config_params(parser_args)
     return cls(**constructor_kwargs)
Example #3
0
 def from_parser_args(cls, parser_args):
     constructor_kwargs = construct_chain_config_params(parser_args)
     return cls(**constructor_kwargs)