Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andreaschandra/fd0cd6cf1074f595b49002494633a41a to your computer and use it in GitHub Desktop.
Save andreaschandra/fd0cd6cf1074f595b49002494633a41a to your computer and use it in GitHub Desktop.
kmeans_endpoint_config = 'topic-kmeans-config'
print(kmeans_endpoint_config)
create_endpoint_config_response = sm.create_endpoint_config(
EndpointConfigName = kmeans_endpoint_config,
ProductionVariants = [{'InstanceType' : 'ml.m4.xlarge',
'InitialInstanceCount': 1,
'ModelName' : kmeans_model,
'VariantName' : 'AllTraffic'}
])
print("Endpoint Config Arn: " + create_endpoint_config_response['EndpointConfigArn'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment