peal.entrypoints.train_generator.str2bool¶ peal.entrypoints.train_generator.str2bool(v)[source]¶ Parse a command-line boolean such as yes/no or 1/0. Parameters: v (bool or str) – The raw argument value. Returns: The parsed value. Return type: bool Raises: argparse.ArgumentTypeError – If v is none of the accepted spellings.