7955d7dfab1b6ec0b643afba6c4ad50adb3cd132,model/base_model.py,BaseRunner,eval,#BaseRunner#Any#Any#Any#Any#,209

Before Change


        if N > data_set.num_examples:
            N = data_set.num_examples
        eval_args = self._get_eval_args(epoch)
        string = "eval on %s, N=%d|" % (data_set.name, N)
        if progress:
            pbar = get_pbar(num_iters, prefix=string).start()
        for iter_idx in range(num_iters):
            batches = []
            for _ in range(self.num_towers):
                if data_set.has_next_batch(partial=True):

After Change


            string = "%s at epoch %d: acc = %.2f%% = %d / %d, loss = %.4f" % \
                     (data_set.name, epoch, 100 * acc, num_corrects, total, loss)
            logging.info(string)
            print(string)
        else:
            loss, acc = None, None

        // For outputting eval json files
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: wenwei202/iss-rnns
Commit Name: 7955d7dfab1b6ec0b643afba6c4ad50adb3cd132
Time: 2016-07-19
Author: seominjoon@gmail.com
File Name: model/base_model.py
Class Name: BaseRunner
Method Name: eval


Project Name: notify-run/notify.run
Commit Name: aad5ed3e98a37bc4de2d7833de37c6bb65b7969c
Time: 2019-05-12
Author: paulgb@gmail.com
File Name: server/notify_run_server/notify.py
Class Name:
Method Name: parallel_notify


Project Name: tensorflow/benchmarks
Commit Name: 449e900ef018a775f2827dd3e591900c761004ab
Time: 2020-06-16
Author: 53017143+sganeshb@users.noreply.github.com
File Name: perfzero/lib/benchmark.py
Class Name: BenchmarkRunner
Method Name: run_benchmark