3ac75cd7c20d6c4bf25deb9f61a5049f982f643f,studio/completion_service/completion_service_test.py,CompletionServiceTest,test_two_experiments_gcloud_nonspot,#CompletionServiceTest#,72
Before Change
"tests",
"test_config.yaml")
n_experiments = 2
results = {}
expected_results = {}
with CompletionService(experimentId,
config=config_path, cloud="gcloud") as cs:
for i in range(0, n_experiments):
key = cs.submitTask(
os.path.join(
mypath,
"completion_service_func.py"),
[i])
expected_results[key] = [i]
for i in range(0, n_experiments):
result = cs.getResults(blocking=True)
results[result[0]] = result[1]
self.assertEquals(results, expected_results)
if __name__ == "__main__":
After Change
"tests",
"test_config.yaml")
self.test_two_experiments_with_cs_args(
config=config_path,
cloud="gcloud")
if __name__ == "__main__":
unittest.main()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 29
Instances
Project Name: studioml/studio
Commit Name: 3ac75cd7c20d6c4bf25deb9f61a5049f982f643f
Time: 2017-10-05
Author: peter.zhokhov@sentient.ai
File Name: studio/completion_service/completion_service_test.py
Class Name: CompletionServiceTest
Method Name: test_two_experiments_gcloud_nonspot
Project Name: studioml/studio
Commit Name: 3ac75cd7c20d6c4bf25deb9f61a5049f982f643f
Time: 2017-10-05
Author: peter.zhokhov@sentient.ai
File Name: studio/completion_service/completion_service_test.py
Class Name: CompletionServiceTest
Method Name: test_two_experiments
Project Name: studioml/studio
Commit Name: 3ac75cd7c20d6c4bf25deb9f61a5049f982f643f
Time: 2017-10-05
Author: peter.zhokhov@sentient.ai
File Name: studio/completion_service/completion_service_test.py
Class Name: CompletionServiceTest
Method Name: test_two_experiments_gcloud_nonspot
Project Name: studioml/studio
Commit Name: 3ac75cd7c20d6c4bf25deb9f61a5049f982f643f
Time: 2017-10-05
Author: peter.zhokhov@sentient.ai
File Name: studio/completion_service/completion_service_test.py
Class Name: CompletionServiceTest
Method Name: test_two_experiments_gcloud