示例#1
0
def main():
    global _logger
    args = _cmd.parseArgsForClassOrScript(train)
    varsArgs = vars(args)
    verbosity = varsArgs.pop('verbosity', _util.DEFAULT_VERBOSITY)
    _logger.info("Passed arguments: '{}'".format(varsArgs))
    train(**varsArgs)
示例#2
0
def main():
    global _logger
    args = _cmd.parseArgsForClassOrScript(build_cache)
    varsArgs = vars(args)
    verbosity = varsArgs.pop('verbosity', _util.DEFAULT_VERBOSITY)
    _logger = _util.get_logger(__file__, verbosity=verbosity)
    _logger.info("Passed arguments: '{}'".format(varsArgs))
    build_cache(**varsArgs)
示例#3
0
def main(args):
    global _logger
    args = _cmd.parseArgsForClassOrScript(generate_dataview)
    varsArgs = vars(args)
    verbosity = varsArgs.pop('verbosity', _util.DEFAULT_VERBOSITY)
    _getSharedLogger(verbosity=verbosity).info(
        "Passed arguments: '{}'".format(varsArgs))
    generate_dataview(**varsArgs)