Reputation: 43
Can anyone tell me how to connect to sagemaker using aws java sdk and invoke a endpoint which is arleady created using jupyter notebook?
Upvotes: 0
Views: 1630
Reputation: 101
You can use the AmazonSageMakerRuntimeClientBuilder to create a client and then use that client to call invokeEndpoint.
At a minimum, your InvokeEndpointRequest will need to have the endpointName and body set, but you should also specify the contentType and accept, as many models require that information.
Upvotes: 2