b88c086d283bfcfc7cc272f67b91bb27736426b4,parlai/scripts/train_model.py,TrainLoop,log,#TrainLoop#,247

Before Change



        // time elapsed
        logs.append("time:{}s".format(math.floor(self.train_time.time())))
        logs.append("total_exs:{}".format(self.world.get_total_exs()))

        exs_per_ep = self.world.num_examples()
        if exs_per_ep:
            logs.append("total_eps:{}".format(

After Change



        // time elapsed
        logs.append("time:{}s".format(math.floor(self.train_time.time())))
        total_exs = self.world.get_total_exs()
        logs.append("total_exs:{}".format(total_exs))

        exs_per_ep = self.world.num_examples()
        if exs_per_ep:
            logs.append("total_epochs:{}".format(
                round(total_exs / exs_per_ep, 2)))

        exs_per_ep = self.world.num_examples()
        if exs_per_ep:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: facebookresearch/ParlAI
Commit Name: b88c086d283bfcfc7cc272f67b91bb27736426b4
Time: 2018-07-11
Author: ahm@fb.com
File Name: parlai/scripts/train_model.py
Class Name: TrainLoop
Method Name: log


Project Name: Microsoft/nni
Commit Name: 3b60f1157530b1e6610f92766358bf0cf05a86d0
Time: 2019-08-12
Author: suiguoxin@gmail.com
File Name: src/sdk/pynni/nni/metis_tuner/metis_tuner.py
Class Name: MetisTuner
Method Name: update_search_space


Project Name: Microsoft/nni
Commit Name: 19173aa4370e36cba96ee7049eaaa0dceda5007c
Time: 2019-08-14
Author: suiguoxin@gmail.com
File Name: src/sdk/pynni/nni/metis_tuner/metis_tuner.py
Class Name: MetisTuner
Method Name: update_search_space