65ad632de368062843ba507a3fe740fc5015fa83,train.py,,train,#,52

Before Change


                six.print_("    * best score on validation dataset: PSNR %f dB"
                           % valid_score)
                best_model = model.copy().to_cpu()
                epoch_name = model_name.rstrip(".npz") + "_epoch%d.npz" % epoch
                chainer.serializers.save_npz(epoch_name, best_model)
            if best_count >= args.lr_decay_interval:
                best_count = 0

After Change


                          % (args.noise_level, args.color))
    else:
        model_name = args.model_name.rstrip(".npz")
    if not os.path.exists("epoch"):
        os.makedirs("epoch")

    model = srcnn.archs[args.arch](ch)
    if args.finetune is not None:
        chainer.serializers.load_npz(args.finetune, model)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 65ad632de368062843ba507a3fe740fc5015fa83
Time: 2017-02-21
Author: nstm101339@gmail.com
File Name: train.py
Class Name:
Method Name: train


Project Name: NifTK/NiftyNet
Commit Name: 895187880fb16d41133942aae7a935698c6f0a8c
Time: 2017-08-18
Author: t.doel@ucl.ac.uk
File Name: niftynet/utilities/get_niftynet_version.py
Class Name:
Method Name: get_niftynet_version


Project Name: NifTK/NiftyNet
Commit Name: 5da29e81cd7fc5780ccb97491ae9ed4b85fff410
Time: 2017-07-27
Author: d.shakir@ucl.ac.uk
File Name: setup.py
Class Name:
Method Name: