Class SageMaker


  • public final class SageMaker
    extends java.lang.Object
    A utility class that help deploy model to SageMaker.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SageMaker.Builder
      A Builder to construct a SageMaker.
    • Method Detail

      • deploy

        public void deploy()
                    throws java.io.IOException
        Deploys the model to Amazon SageMaker hosting service.
        Throws:
        java.io.IOException - if failed upload model to S3
      • deleteEndpoint

        public void deleteEndpoint()
        Deletes the Amazon SageMaker endpoint.
      • deleteEndpointConfig

        public void deleteEndpointConfig()
        Deletes the endpoint configuration.
      • deleteSageMakerModel

        public void deleteSageMakerModel()
        Deletes the SageMaker model configuration.
      • invoke

        public byte[] invoke​(byte[] body)
        Invokes the Amazon SageMaker endpoint.
        Parameters:
        body - the request payload
        Returns:
        the inference response
      • builder

        public static SageMaker.Builder builder()
        Creates a builder to build a SageMaker instance.
        Returns:
        a new builder