c2fa692c7a7c0f2bbd8f4ddfcf3ceb49e10c6722,examples/eval_model.py,,eval_model,#Any#Any#,31
Before Change
tot_time = 0
// Show some example dialogs:
for _ in range(int(opt["num_examples"])):
world.parley()
if opt["display_examples"]:
print("---")
print(world.display() + "\n~~")
if log_time.time() > log_every_n_secs:
tot_time += log_time.time()
print(str(int(tot_time)) + "s elapsed: " + str(world.report()))
log_time.reset()
if world.epoch_done():
print("EPOCH DONE")
break
print(world.report())
def main():
After Change
// Show some example dialogs:
cnt = 0
while not world.epoch_done():
cnt += 1
world.parley()
if opt["display_examples"]:
print("---")
print(world.display() + "\n~~")
if log_time.time() > log_every_n_secs:
tot_time += log_time.time()
print(str(int(tot_time)) + "s elapsed: " + str(world.report()))
log_time.reset()
if opt["num_examples"] > 0 and cnt >= opt["num_examples"]:
break
if world.epoch_done():
print("EPOCH DONE")
report = world.report()
print(report)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: facebookresearch/ParlAI
Commit Name: c2fa692c7a7c0f2bbd8f4ddfcf3ceb49e10c6722
Time: 2018-04-03
Author: ahm@fb.com
File Name: examples/eval_model.py
Class Name:
Method Name: eval_model
Project Name: facebookresearch/ParlAI
Commit Name: e9432c84fd9babf50fd66f8f66b38e6f90b8fc2f
Time: 2017-11-29
Author: kshuster@fb.com
File Name: examples/train_model.py
Class Name:
Method Name: run_eval
Project Name: facebookresearch/ParlAI
Commit Name: 76d9abc92ba942210a15d03db25248c6309fd362
Time: 2017-11-01
Author: ahm@fb.com
File Name: examples/build_dict.py
Class Name:
Method Name: build_dict
Project Name: facebookresearch/ParlAI
Commit Name: bf3d8b3a11109bdff147b9d9b6d24919377dd62b
Time: 2017-11-30
Author: kshuster@fb.com
File Name: examples/train_model.py
Class Name:
Method Name: run_eval