return ns, sys.argv[:1] + args ############### ## __main__ ## ############### if __name__ == '__main__': logger = None flags = None config = None # cmd line arguments flags, argv = parse_args() sys.argv[:] = argv with open(flags.conf, 'r') as ymlfile: config = yaml.load(ymlfile, Loader=yaml.FullLoader) logger = init_logger(name="test_rklearn_perceptron", config = config) logger.info("") logger.info("################################") logger.info("## test_rklearn_perceptron.py ##") logger.info("################################") logger.info("") unittest.main()
############### ## __main__ ## ############### if __name__ == '__main__': logger = None FLAGS = None config = None # Parse cmd line arguments FLAGS, argv = parse_args() sys.argv[:] = argv with open(FLAGS.conf, 'r') as ymlfile: config = yaml.load(ymlfile, Loader=yaml.FullLoader) assert (config is not None) logger = init_logger(name="test_mnist_adalineXXX", config=config) logger.info("") logger.info("##########################################") logger.info("## test_rklearn_adaline_binary_mnist.py ##") logger.info("##########################################") logger.info("") main(config)
############### ## __main__ ## ############### if __name__ == '__main__': logger = None FLAGS = None config = None # Parse cmd line arguments FLAGS, argv = parse_args() sys.argv[:] = argv with open(FLAGS.conf, 'r') as ymlfile: config = yaml.load(ymlfile, Loader=yaml.FullLoader) assert (config is not None) logger = init_logger(name="test_mnist_perceptron", config=config) logger.info("") logger.info("#############################################") logger.info("## test_rklearn_perceptron_binary_mnist.py ##") logger.info("#############################################") logger.info("") main(config)
required=True, ) ns, args = parser.parse_known_args(namespace=unittest) return ns, sys.argv[:1] + args ############### ## __main__ ## ############### if __name__ == '__main__': flags, argv = parse_args() # print(flags, argv) sys.argv[:] = argv with open(flags.conf, 'r') as ymlfile: config = yaml.load(ymlfile, Loader=yaml.FullLoader) logger = init_logger(name="test_mnist_plotters", level=logging.getLevelName( config["logger"]["log_level"].upper())) logger.info("") logger.info("############################") logger.info("## test_mnist_plotters.py ##") logger.info("################################") logger.info("") unittest.main()
## __main__ ## ############### if __name__ == '__main__': logger = None FLAGS = None config = None FLAGS, argv = parse_args() sys.argv[:] = argv with open(FLAGS.conf, 'r') as ymlfile: config = yaml.load(ymlfile, Loader=yaml.FullLoader) assert (config is not None) # bunch it to facile usage config = Bunch(config) logger = init_logger(name="test_rklearn_tfoo_v1_cifar_10_cnn", config=config) logger.info("") logger.info("##########################################") logger.info("## test_rklearn_tfoo_v1_cifar_10_cnn.py ##") logger.info("##########################################") logger.info("") main(config, logger=logger)
"--conf", help="Path to the YAML configuration file", required=True, ) ns, args = parser.parse_known_args(namespace=unittest) return ns, sys.argv[:1] + args ############### ## __main__ ## ############### if __name__ == '__main__': flags, argv = parse_args() sys.argv[:] = argv with open(flags.conf, 'r') as ymlfile: config = yaml.load(ymlfile, Loader=yaml.FullLoader) assert (config is not None) logger = init_logger(name="test_plotters", config=config) logger.info("") logger.info("######################") logger.info("## test_plotters.py ##") logger.info("######################") logger.info("") unittest.main()