ffe5898317c4f971483f649a1ffb53d81a29705a,apps/kg/eval.py,,main,#Any#,92
Before Change
total_metrics = {}
for i in range(args.num_proc):
metrics = queue.get()
for k, v in metrics.items():
if i == 0:
total_metrics[k] = v / args.num_proc
else:
total_metrics[k] += v / args.num_proc
for k, v in metrics.items():
print("Test average {} at [{}/{}]: {}".format(k, args.step, args.max_step, v))
else:
test(args, model, [test_sampler_head, test_sampler_tail])
After Change
logs = logs + log
for metric in logs[0].keys():
metrics[metric] = sum([log[metric] for log in logs]) / len(logs)
for k, v in metrics.items():
print("Test average {} at [{}/{}]: {}".format(k, args.step, args.max_step, v))
for proc in procs:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: dmlc/dgl
Commit Name: ffe5898317c4f971483f649a1ffb53d81a29705a
Time: 2020-02-09
Author: classicxsong@gmail.com
File Name: apps/kg/eval.py
Class Name:
Method Name: main
Project Name: logpai/loglizer
Commit Name: 7c960272c5ab4d25a022538f5849addec3e6bfee
Time: 2019-02-25
Author: zhujm.home@gmail.com
File Name: loglizer/preprocessing.py
Class Name: FeatureExtractor
Method Name: transform
Project Name: biolab/orange3
Commit Name: 97fef4eacb736adeb620128ef26234773ec5f751
Time: 2015-02-19
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/widgets/classify/owclassificationtreegraph.py
Class Name: ClassificationTreeNode
Method Name: get_distribution