@@ -119,8 +119,8 @@ def pca_estimator_with_falsy_debug_hook():
119
119
pca = sagemaker .estimator .Estimator (
120
120
PCA_IMAGE ,
121
121
role = EXECUTION_ROLE ,
122
- train_instance_count = 1 ,
123
- train_instance_type = 'ml.c4.xlarge' ,
122
+ instance_count = 1 ,
123
+ instance_type = 'ml.c4.xlarge' ,
124
124
output_path = s3_output_location ,
125
125
debugger_hook_config = False
126
126
)
@@ -298,7 +298,7 @@ def test_training_step_creation_with_debug_hook(pca_estimator_with_debug_hook):
298
298
'DebugRuleConfigurations' : [
299
299
{
300
300
'RuleConfigurationName' : 'Confusion' ,
301
- 'RuleEvaluatorImage' : '199566480951 .dkr.ecr.us-east-1.amazonaws.com/sagemaker-debugger-rules:latest' ,
301
+ 'RuleEvaluatorImage' : '503895931360 .dkr.ecr.us-east-1.amazonaws.com/sagemaker-debugger-rules:latest' ,
302
302
'RuleParameters' : {
303
303
'rule_to_invoke' : 'Confusion' ,
304
304
'category_no' : '15' ,
@@ -449,13 +449,14 @@ def test_training_step_creation_with_framework(tensorflow_estimator):
449
449
},
450
450
'RoleArn' : EXECUTION_ROLE ,
451
451
'HyperParameters' : {
452
- 'model_dir' : '"s3://sagemaker/models/tensorflow-job/model"' ,
452
+ 'checkpoint_path' : '"s3://sagemaker/models/sagemaker-tensorflow/checkpoints"' ,
453
+ 'evaluation_steps' : '100' ,
453
454
'sagemaker_container_log_level' : '20' ,
454
- 'sagemaker_enable_cloudwatch_metrics' : 'false' ,
455
455
'sagemaker_job_name' : '"tensorflow-job"' ,
456
456
'sagemaker_program' : '"tf_train.py"' ,
457
457
'sagemaker_region' : '"us-east-1"' ,
458
- 'sagemaker_submit_directory' : '"s3://sagemaker/source"'
458
+ 'sagemaker_submit_directory' : '"s3://sagemaker/source"' ,
459
+ 'training_steps' : '1000' ,
459
460
},
460
461
'TrainingJobName' : 'tensorflow-job' ,
461
462
'Tags' : DEFAULT_TAGS_LIST
@@ -557,7 +558,6 @@ def test_get_expected_model_with_framework_estimator(tensorflow_estimator):
557
558
'Environment' : {
558
559
'SAGEMAKER_PROGRAM' : 'tf_train.py' ,
559
560
'SAGEMAKER_SUBMIT_DIRECTORY' : 's3://sagemaker/tensorflow-job/source/sourcedir.tar.gz' ,
560
- 'SAGEMAKER_ENABLE_CLOUDWATCH_METRICS' : 'false' ,
561
561
'SAGEMAKER_CONTAINER_LOG_LEVEL' : '20' ,
562
562
'SAGEMAKER_REGION' : 'us-east-1' ,
563
563
},
0 commit comments