ea65d92a41ba1e8171cd0814dc9c50373f8e2c4f,eval_ch.py,,main,#,197
Before Change
num_workers=args.num_workers)
assert (args.use_pretrained or args.resume.strip())
test(
net=net,
test_data=test_data,
metric=test_metric,
calc_weight_count=True,
extended_log=True)
if __name__ == "__main__":
main()
After Change
if args.all:
args.use_pretrained = True
for model_name, model_metainfo in (_model_sha1.items() if version_info[0] >= 3 else _model_sha1.iteritems()):
error, checksum, repo_release_tag = model_metainfo
args.model = model_name
logging.info("==============")
logging.info("Checking model: {}".format(model_name))
acc_value = test_model(args=args)
if acc_value is not None:
exp_value = int(error) * 1e-4
if abs(acc_value - exp_value) > 2e-4:
logging.info("----> Wrong value detected (expected value: {})!".format(exp_value))
else:
test_model(args=args)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: osmr/imgclsmob
Commit Name: ea65d92a41ba1e8171cd0814dc9c50373f8e2c4f
Time: 2020-01-16
Author: osemery@gmail.com
File Name: eval_ch.py
Class Name:
Method Name: main
Project Name: rusty1s/pytorch_geometric
Commit Name: 796a6e55afacbaa0ada91a29926c6635f9cf85c4
Time: 2017-12-11
Author: matthias.fey@tu-dortmund.de
File Name: examples/cuneiform.py
Class Name:
Method Name:
Project Name: Pinafore/qb
Commit Name: 166cb03be2443c53a8cb17203f7bcf29b5f9a1ec
Time: 2017-05-25
Author: sjtufs@gmail.com
File Name: qanta/buzzer/test.py
Class Name:
Method Name: generate
Project Name: pyannote/pyannote-audio
Commit Name: 06278c94dd2e9d572840ee2133f0d9b366effaf8
Time: 2017-10-15
Author: bredin@limsi.fr
File Name: pyannote/audio/applications/feature_extraction.py
Class Name:
Method Name: extract