Skip to content

Commit

Permalink
Add HyperParameters back to SageMaker training job (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffwan authored and k8s-ci-robot committed May 31, 2019
1 parent 14c66f0 commit d5147b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/aws/sagemaker/common/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ def create_training_job(client, image, instance_type, instance_count, volume_siz
"VolumeSizeInGB": volume_size
},
"TrainingJobName": job_name,
"HyperParameters": {
"k": "10",
"feature_dim": "784",
"mini_batch_size": "500"
},
"StoppingCondition": {
"MaxRuntimeInSeconds": 60 * 60
},
Expand Down Expand Up @@ -217,4 +222,4 @@ def print_tranformation_job_result(output_location):
print("Sample transform result: {}".format(results[0]))

def id_generator(size=4, chars=string.ascii_uppercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
return ''.join(random.choice(chars) for _ in range(size))

0 comments on commit d5147b9

Please sign in to comment.