ea65d92a41ba1e8171cd0814dc9c50373f8e2c4f,eval_ch.py,,main,#,197
Before Change
num_classes=args.num_classes,
in_channels=args.in_channels)
assert (hasattr(net, "classes"))
assert (hasattr(net, "in_size"))
if args.data_subset == "val":
get_test_data_source_class = get_val_data_source
test_metric = get_composite_metric(
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: nipy/dipy
Commit Name: e8aff8a890da8670ea8af8783caf3984c4dde558
Time: 2015-02-25
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_transforms.py
Class Name:
Method Name: test_number_of_parameters
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0f1c6c3be37bc7b4a4e84574196e24017bd3afdb
Time: 2016-04-19
Author: skschneider@users.noreply.github.com
File Name: tests/provider_benchmark_test.py
Class Name: ProviderBenchmarkChecks
Method Name: testMYSQLSupport
Project Name: snipsco/snips-nlu
Commit Name: 976113da525dcf06e4330ac623ae430689ef5a78
Time: 2019-05-20
Author: clement.doumouro@gmail.com
File Name: snips_nlu/tests/test_dataset_validation.py
Class Name: TestDatasetValidation
Method Name: test_should_create_number_variation