6aad1de658a933d3fa376f7fe9abf419da8a8bd2,python/baseline/tf/seq2seq/train.py,Seq2SeqTrainerTf,test,#Seq2SeqTrainerTf#Any#Any#Any#,69

Before Change


        for batch_dict in vs:

            feed_dict = self.model.make_input(batch_dict)
            vals = self.sess.run([self.test_loss], feed_dict=feed_dict)
            lossv = vals[0]
            total_loss += lossv

        self.log.debug({"phase": phase, "time": time.time() - start})
        avg_loss = total_loss/steps

After Change


            total_toks += toks

        metrics = self.calc_metrics(total_loss, total_toks)
        self.report(
            epochs, metrics, start,
            phase, "EPOCH", reporting_fns
        )


@register_training_func("seq2seq")
def fit(model, ts, vs, es=None, **kwargs):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: dpressel/mead-baseline
Commit Name: 6aad1de658a933d3fa376f7fe9abf419da8a8bd2
Time: 2018-11-26
Author: blester125@users.noreply.github.com
File Name: python/baseline/tf/seq2seq/train.py
Class Name: Seq2SeqTrainerTf
Method Name: test


Project Name: pfnet/optuna
Commit Name: 8ebe10a8d631b8f06b348d4dcb2f4763b824fe32
Time: 2019-08-22
Author: contact@c-bata.link
File Name: tests/test_trial.py
Class Name:
Method Name: test_trial_should_prune


Project Name: vatlab/SoS
Commit Name: 9c49f44c6859e966bb0a1ae48867ace8dfea716d
Time: 2019-02-17
Author: ben.bog@gmail.com
File Name: src/sos/controller.py
Class Name: WorkerManager
Method Name: kill_all


Project Name: tensorflow/minigo
Commit Name: 0c4b0865f627a37c90b4725e798ec70ca9617b3f
Time: 2018-02-12
Author: jacksona@google.com
File Name: dual_net.py
Class Name: DualNetworkTrainer
Method Name: validate