55b880469ced115de9949d5d25ff835dabbb2caa,13_2_seq2seq_att.py,,,#,109

Before Change


        if i % 100 is 0:
            print("[(%d %d%%) %.4f]" %
                  (epoch, epoch / N_EPOCH * 100, train_loss))
            print(translate(srcs[0]), "\n")
            print(translate(), "\n")

After Change


            train_loss = train(srcs[0], targets[0])

            if i % 1000 is 0:
                print("[(%d/%d %d%%) %.4f]" %
                      (epoch, N_EPOCH, i * len(srcs) * 100 / len(train_loader), train_loss))
                output, _ = translate(srcs[0])
                print(srcs[0], output, "\n")

                output, attentions = translate()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: hunkim/PyTorchZeroToAll
Commit Name: 55b880469ced115de9949d5d25ff835dabbb2caa
Time: 2017-11-08
Author: hunkim@gmail.com
File Name: 13_2_seq2seq_att.py
Class Name:
Method Name:


Project Name: githubharald/SimpleHTR
Commit Name: b9fc4e3a1b9dc019640164b57d49ecba56364bfa
Time: 2018-08-16
Author: harald_scheidl@hotmail.com
File Name: src/main.py
Class Name:
Method Name: validate


Project Name: hunkim/PyTorchZeroToAll
Commit Name: c4610ff26a01a0622bc11dcac0f0812f05c56e0c
Time: 2017-11-02
Author: hunkim@gmail.com
File Name: 12_4_name_classify.py
Class Name:
Method Name: train