123456789101112131415161718192021222324252627 |
- import argparse
- parser = argparse.ArgumentParser()
- parser.add_argument('--task_id', type=int, default=4, help='bAbI task id')
- parser.add_argument('--question_id', type=int, default=0, help='question types')
- parser.add_argument('--workers', type=int, help='number of data loading workers', default=2)
- parser.add_argument('--batchSize', type=int, default=10, help='input batch size')
- parser.add_argument('--state_dim', type=int, default=4, help='GGNN hidden state size')
- parser.add_argument('--n_steps', type=int, default=5, help='propogation steps number of GGNN')
- parser.add_argument('--niter', type=int, default=10, help='number of epochs to train for')
- parser.add_argument('--lr', type=float, default=0.01, help='learning rate')
- parser.add_argument('--cuda', action='store_true', help='enables cuda')
- parser.add_argument('--verbal', action='store_true', help='print training info or not')
- parser.add_argument('--manualSeed', type=int, help='manual seed')
- opt = parser.parse_args()
- print(opt)
- def print_hi(name):
- # Use a breakpoint in the code line below to debug your script.
- print(f'Hi, {name}') # Press ⌘F8 to toggle the breakpoint.
- if __name__ == '__main__':
- print_hi('PyCharm')
|