5803f7f073262df89dea926241e59dc30dee2547,qanta/experimental/chainer/main.py,,main,#,93

Before Change


    trainer.extend(extensions.PrintReport(
                ["epoch", "iteration", "accuracy"]),
            trigger=(interval, "iteration"))
    trainer.extend(extensions.ProgressBar(
            update_interval=1 if args.test else 10))
    trainer.extend(extensions.snapshot())
    trainer.extend(extensions.snapshot_object(
            model, "model_iter_{.updater.iteration}"))
    if args.resume:

After Change


    parser.set_defaults(test=False)
    parser.add_argument("--hidden_size", type=int, default=300,
                        help="Number of LSTM units in each layer")
    parser.add_argument("--embed_size", type=int, default=300,
                        help="Size of embeddings")
    parser.add_argument("--model", "-m", default="model.npz",
                        help="Model file name to serialize")
    parser.add_argument("--glove", default="data/glove.6B.300d.txt",
                        help="Path to glove embedding file.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: Pinafore/qb
Commit Name: 5803f7f073262df89dea926241e59dc30dee2547
Time: 2017-12-14
Author: sjtufs@gmail.com
File Name: qanta/experimental/chainer/main.py
Class Name:
Method Name: main


Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: 8079adae33711e4886a625df3f0ae9860739f7b9
Time: 2019-09-03
Author: yuhanliu@google.com
File Name: example_zoo/tools/process.py
Class Name:
Method Name:


Project Name: chainer/chainercv
Commit Name: 91ea07fc28e27d33cf14ed458ba6afa42070cb65
Time: 2018-12-05
Author: yuyuniitani@gmail.com
File Name: examples/pspnet/train_multi.py
Class Name:
Method Name: main