553f777ad245ef3caa799151e34e6cc37bbcb11a,gluon/utils.py,,report_accuracy,#Any#Any#,228
Before Change
Report string.
metric_info = metric.get()
if extended_log:
msg_pattern = "{name}={value:.4f} ({value})"
else:
msg_pattern = "{name}={value:.4f}"
if isinstance(metric, mx.metric.CompositeEvalMetric):
msg = ""
for m in zip(*metric_info):
if msg != "":
msg += ", "
msg += msg_pattern.format(name=m[0], value=m[1])
elif isinstance(metric, mx.metric.EvalMetric):
msg = msg_pattern.format(name=metric_info[0], value=metric_info[1])
else:
raise Exception("Wrong metric type: {}".format(type(metric)))
After Change
metric_info = metric.get()
if isinstance(metric, mx.metric.CompositeEvalMetric):
msg = ", ".join([create_msg(name=m[0], value=m[1]) for m in zip(*metric_info)])
elif isinstance(metric, mx.metric.EvalMetric):
msg = create_msg(name=metric_info[0], value=metric_info[1])
else:
raise Exception("Wrong metric type: {}".format(type(metric)))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 20
Instances
Project Name: osmr/imgclsmob
Commit Name: 553f777ad245ef3caa799151e34e6cc37bbcb11a
Time: 2020-02-18
Author: osemery@gmail.com
File Name: gluon/utils.py
Class Name:
Method Name: report_accuracy
Project Name: osmr/imgclsmob
Commit Name: 553f777ad245ef3caa799151e34e6cc37bbcb11a
Time: 2020-02-18
Author: osemery@gmail.com
File Name: chainer_/utils.py
Class Name:
Method Name: report_accuracy
Project Name: osmr/imgclsmob
Commit Name: 553f777ad245ef3caa799151e34e6cc37bbcb11a
Time: 2020-02-18
Author: osemery@gmail.com
File Name: tensorflow2/utils.py
Class Name:
Method Name: report_accuracy
Project Name: osmr/imgclsmob
Commit Name: 553f777ad245ef3caa799151e34e6cc37bbcb11a
Time: 2020-02-18
Author: osemery@gmail.com
File Name: pytorch/utils.py
Class Name:
Method Name: report_accuracy