File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 103
103
" estimator = TensorFlow(\n " ,
104
104
" entry_point=\" train-mobilenet.py\" ,\n " ,
105
105
" source_dir=\" code\" ,\n " ,
106
- " output_path=model_path, \n " ,
107
106
" instance_type=training_instance_type,\n " ,
108
107
" instance_count=training_instance_count, \n " ,
109
- " distribution=distribution,\n " ,
110
108
" hyperparameters=shared_hyperparameters, \n " ,
111
109
" metric_definitions=metric_definitions, \n " ,
112
110
" role=role,\n " ,
197
195
}
198
196
],
199
197
"source" : [
200
- " training_job_name = tuner.best_estimator().latest_training_job.name \n " ,
198
+ " best_model_uri = tuner.best_estimator().latest_training_job.describe()['ModelArtifacts']['S3ModelArtifacts'] \n " ,
201
199
" \n " ,
202
- " print(f\" Best model artifact file is uploaded here: {model_path}/{training_job_name}/output ======== \" )\n "
200
+ " print(f\"\\ nBest model artifact file is uploaded here: {best_model_uri} \" )"
203
201
]
204
202
}
205
203
],
208
206
"kernelspec" : {
209
207
"display_name" : " Python 3 (Data Science)" ,
210
208
"language" : " python" ,
211
- "name" : " python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:us-east -1:081325390199 :image/datascience-1.0"
209
+ "name" : " python3__SAGEMAKER_INTERNAL__arn:aws:sagemaker:eu-west -1:470317259841 :image/datascience-1.0"
212
210
},
213
211
"language_info" : {
214
212
"codemirror_mode" : {
You can’t perform that action at this time.
0 commit comments