Created
July 9, 2020 06:06
-
-
Save ctodd/7d327f06cd79ac1168e20bce90518815 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
timestamp = time.strftime('-%Y-%m-%d-%H-%M-%S', time.gmtime()) | |
endpoint_config_name = training_job_name + '-epc' + timestamp | |
endpoint_config_response = client.create_endpoint_config( | |
EndpointConfigName = endpoint_config_name, | |
ProductionVariants=[{ | |
'InstanceType':'ml.t2.medium', | |
'InitialInstanceCount':1, | |
'ModelName':model_name, | |
'VariantName':'AllTraffic'}]) | |
print('Endpoint configuration name: {}'.format(endpoint_config_name)) | |
print('Endpoint configuration arn: {}'.format(endpoint_config_response['EndpointConfigArn'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment