import argparse

from .config import config_command_parser
from .config_args import default_config_file, load_config_from_file  # noqa: F401
from .default import default_command_parser
from .update import update_command_parser






def 				__lowerCamelCase		(						lowerCAmelCase__=None     ):
       lowerCAmelCase__					     = argparse.ArgumentParser(add_help=lowerCAmelCase__     ,  allow_abbrev=lowerCAmelCase__     )
       # The main config parser
       lowerCAmelCase__					     = config_command_parser(lowerCAmelCase__     )
       # The subparser to add commands to
       lowerCAmelCase__					     = config_parser.add_subparsers(title='subcommands'     ,  dest='subcommand'     )

       # Then add other parsers with the parent parser
       default_command_parser(lowerCAmelCase__     ,  parents=[parent_parser]     )
       update_command_parser(lowerCAmelCase__     ,  parents=[parent_parser]     )

       return config_parser






def 				__lowerCamelCase		(						):
       lowerCAmelCase__					     = get_config_parser()
       lowerCAmelCase__					     = config_parser.parse_args()

       if not hasattr(lowerCAmelCase__     ,  'func'     ):
              config_parser.print_help()
              exit(1     )

       # Run
       args.func(lowerCAmelCase__     )


if __name__ == "__main__":
    main()

import numpy as np






def 				__lowerCamelCase		(						lowerCAmelCase__     ):
       return 1 / (1 + np.exp(-vector     ))






def 				__lowerCamelCase		(						lowerCAmelCase__     ):
       return vector * sigmoid(lowerCAmelCase__     )


if __name__ == "__main__":
    import doctest

    doctest.testmod()
