@@ -41,7 +41,7 @@ def test_single_automl_step(pipeline_session):
4141 max_candidates = 1 ,
4242 max_runtime_per_training_job_in_seconds = 3600 ,
4343 total_job_runtime_in_seconds = 36000 ,
44- job_objective = "fake job objective" ,
44+ job_objective = { "MetricName" : "F1" } ,
4545 generate_candidate_definitions_only = False ,
4646 tags = [{"Name" : "some-tag" , "Value" : "value-for-tag" }],
4747 content_type = "x-application/vnd.amazon+parquet" ,
@@ -111,7 +111,7 @@ def test_single_automl_step(pipeline_session):
111111 "VpcConfig" : {"SecurityGroupIds" : ["group" ], "Subnets" : ["subnet" ]},
112112 },
113113 },
114- "AutoMLJobObjective" : "fake job objective" ,
114+ "AutoMLJobObjective" : { "MetricName" : "F1" } ,
115115 "InputDataConfig" : [
116116 {
117117 "ChannelType" : "training" ,
@@ -165,7 +165,7 @@ def test_single_automl_step_with_parameter(pipeline_session):
165165 max_candidates = 1 ,
166166 max_runtime_per_training_job_in_seconds = 3600 ,
167167 total_job_runtime_in_seconds = 36000 ,
168- job_objective = "fake job objective" ,
168+ job_objective = { "MetricName" : "F1" } ,
169169 generate_candidate_definitions_only = False ,
170170 tags = [{"Name" : "some-tag" , "Value" : "value-for-tag" }],
171171 content_type = "x-application/vnd.amazon+parquet" ,
@@ -239,7 +239,7 @@ def test_single_automl_step_with_parameter(pipeline_session):
239239 "VpcConfig" : {"SecurityGroupIds" : ["group" ], "Subnets" : ["subnet" ]},
240240 },
241241 },
242- "AutoMLJobObjective" : "fake job objective" ,
242+ "AutoMLJobObjective" : { "MetricName" : "F1" } ,
243243 "InputDataConfig" : [
244244 {
245245 "ChannelType" : "training" ,
@@ -290,7 +290,7 @@ def test_get_best_auto_ml_model(pipeline_session):
290290 max_candidates = 1 ,
291291 max_runtime_per_training_job_in_seconds = 3600 ,
292292 total_job_runtime_in_seconds = 36000 ,
293- job_objective = "fake job objective" ,
293+ job_objective = { "MetricName" : "F1" } ,
294294 generate_candidate_definitions_only = False ,
295295 tags = [{"Name" : "some-tag" , "Value" : "value-for-tag" }],
296296 content_type = "x-application/vnd.amazon+parquet" ,
@@ -399,7 +399,7 @@ def test_automl_step_with_invalid_mode(pipeline_session):
399399 max_candidates = 1 ,
400400 max_runtime_per_training_job_in_seconds = 3600 ,
401401 total_job_runtime_in_seconds = 36000 ,
402- job_objective = "fake job objective" ,
402+ job_objective = { "MetricName" : "F1" } ,
403403 generate_candidate_definitions_only = False ,
404404 tags = [{"Name" : "some-tag" , "Value" : "value-for-tag" }],
405405 content_type = "x-application/vnd.amazon+parquet" ,
@@ -455,7 +455,7 @@ def test_automl_step_with_no_mode(pipeline_session):
455455 max_candidates = 1 ,
456456 max_runtime_per_training_job_in_seconds = 3600 ,
457457 total_job_runtime_in_seconds = 36000 ,
458- job_objective = "fake job objective" ,
458+ job_objective = { "MetricName" : "F1" } ,
459459 generate_candidate_definitions_only = False ,
460460 tags = [{"Name" : "some-tag" , "Value" : "value-for-tag" }],
461461 content_type = "x-application/vnd.amazon+parquet" ,
0 commit comments