def initialize_run(nnet):
if nnet.data.dataset_name == 'imagenet':
nnet.max_passes = 1
nnet.max_inner_iterations = 5
nnet.max_outer_iterations = 1
nnet.epoch = epoch_imagenet
elif Cfg.store_on_gpu:
nnet.max_passes = 50
nnet.max_inner_iterations = 100
nnet.max_outer_iterations = 1
nnet.epoch = epoch_full_gpu
nnet.old_objective = np.infty
nnet.old_validation_acc = 0.
performance(nnet, which_set='train', print_=True)
else:
nnet.max_passes = 50
nnet.max_inner_iterations = 100
nnet.max_outer_iterations = 1
nnet.epoch = epoch_part_gpu
nnet.old_objective = np.infty
nnet.old_validation_acc = 0.
performance(nnet, which_set='train', print_=True)
return
评论列表
文章目录