@@ -123,22 +123,29 @@ def complex_experiment_obj(sagemaker_boto_client):
123123 trial_name3 = name ()
124124
125125 next_trial1 = trial .Trial .create (
126- trial_name = trial_name1 , experiment_name = experiment_obj_name , sagemaker_boto_client = sagemaker_boto_client ,
126+ trial_name = trial_name1 ,
127+ experiment_name = experiment_obj_name ,
128+ sagemaker_boto_client = sagemaker_boto_client ,
127129 )
128130 trial_objs .append (next_trial1 )
129131 next_trial2 = trial .Trial .create (
130- trial_name = trial_name2 , experiment_name = experiment_obj_name , sagemaker_boto_client = sagemaker_boto_client ,
132+ trial_name = trial_name2 ,
133+ experiment_name = experiment_obj_name ,
134+ sagemaker_boto_client = sagemaker_boto_client ,
131135 )
132136 trial_objs .append (next_trial2 )
133137 next_trial3 = trial .Trial .create (
134- trial_name = trial_name3 , experiment_name = experiment_obj_name , sagemaker_boto_client = sagemaker_boto_client ,
138+ trial_name = trial_name3 ,
139+ experiment_name = experiment_obj_name ,
140+ sagemaker_boto_client = sagemaker_boto_client ,
135141 )
136142 trial_objs .append (next_trial3 )
137143
138144 # create trial components
139145 trial_component_name = name ()
140146 trial_component_obj = trial_component .TrialComponent .create (
141- trial_component_name = trial_component_name , sagemaker_boto_client = sagemaker_boto_client ,
147+ trial_component_name = trial_component_name ,
148+ sagemaker_boto_client = sagemaker_boto_client ,
142149 )
143150
144151 # associate the trials with trial components
@@ -181,7 +188,9 @@ def trial_obj(sagemaker_boto_client, experiment_obj):
181188@pytest .fixture
182189def trial_component_obj (sagemaker_boto_client ):
183190 trial_component_obj = trial_component .TrialComponent .create (
184- trial_component_name = name (), sagemaker_boto_client = sagemaker_boto_client , tags = TAGS ,
191+ trial_component_name = name (),
192+ sagemaker_boto_client = sagemaker_boto_client ,
193+ tags = TAGS ,
185194 )
186195 yield trial_component_obj
187196 time .sleep (0.5 )
@@ -346,7 +355,10 @@ def training_job_name(sagemaker_boto_client, training_role_arn, docker_image, tr
346355 "DataSource" : {"S3DataSource" : {"S3Uri" : training_s3_uri , "S3DataType" : "S3Prefix" }},
347356 }
348357 ],
349- AlgorithmSpecification = {"TrainingImage" : docker_image , "TrainingInputMode" : "File" ,},
358+ AlgorithmSpecification = {
359+ "TrainingImage" : docker_image ,
360+ "TrainingInputMode" : "File" ,
361+ },
350362 RoleArn = training_role_arn ,
351363 ResourceConfig = {"InstanceType" : "ml.m5.large" , "InstanceCount" : 1 , "VolumeSizeInGB" : 10 },
352364 StoppingCondition = {"MaxRuntimeInSeconds" : 900 },
0 commit comments