import argparse def arg_parse(): parser = argparse.ArgumentParser(description='GcnInformax Arguments.') parser.add_argument('--DS', dest='DS', help='Dataset') parser.add_argument('--local', dest='local', action='store_const', const=True, default=False) parser.add_argument('--glob', dest='glob', action='store_const', const=True, default=False) parser.add_argument('--prior', dest='prior', action='store_const', const=True, default=False) parser.add_argument('--lr', dest='lr', type=float, help='Learning rate.') parser.add_argument('--num-gc-layers', dest='num_gc_layers', type=int, default=5, help='Number of graph convolution layers before each pooling') parser.add_argument('--hidden-dim', dest='hidden_dim', type=int, default=32, help='') parser.add_argument('--aug', type=str, default='dnodes') parser.add_argument('--seed', type=int, default=0) parser.add_argument('--iso_logic', action='store_true') parser.add_argument('--a', type=int, default=0, help='the weight of iso loss.') parser.add_argument('--subiso_logic', action='store_true') parser.add_argument('--b', type=int, default=0, help='the weight of subiso loss.') return parser.parse_args()