请问各位,以上模块是用来计算acc和loss嘛?原理是什么?谢谢大家!
# log args
default_fields = 'loss,acc'
parser.add_argument('--log.fields', type=str, default=default_fields, metavar='FIELDS',
help="fields to monitor during training (default: {:s})".format(default_fields))
default_exp_dir = 'results'
parser.add_argument('--log.exp_dir', type=str, default=default_exp_dir, metavar='EXP_DIR',
help="directory where experiments should be saved (default: {:s})".format(default_exp_dir))