LocalSagemakerRuntimeClient: A SageMaker Runtime client that calls a local endpoint only.

LocalSagemakerRuntimeClientR Documentation

A SageMaker Runtime client that calls a local endpoint only.

Description

A SageMaker Runtime client that calls a local endpoint only.

A SageMaker Runtime client that calls a local endpoint only.

Methods

Public methods


Method new()

Initializes a LocalSageMakerRuntimeClient.

Usage
LocalSagemakerRuntimeClient$new(config = NULL)
Arguments
config

(list): Optional configuration for this client. In particular only the local port is read.


Method invoke_endpoint()

Invoke the endpoint.

Usage
LocalSagemakerRuntimeClient$invoke_endpoint(
  Body,
  EndpointName,
  ContentType = NULL,
  Accept = NULL,
  CustomAttributes = NULL,
  TargetModel = NULL,
  TargetVariant = NULL,
  InferenceId = NULL
)
Arguments
Body

: Input data for which you want the model to provide inference.

EndpointName

: The name of the endpoint that you specified when you created the endpoint using the CreateEndpoint API.

ContentType

: The MIME type of the input data in the request body (Default value = None)

Accept

: The desired MIME type of the inference in the response (Default value = None)

CustomAttributes

: Provides additional information about a request for an inference submitted to a model hosted at an Amazon SageMaker endpoint (Default value = None)

TargetModel

: The model to request for inference when invoking a multi-model endpoint (Default value = None)

TargetVariant

: Specify the production variant to send the inference request to when invoking an endpoint that is running two or more variants (Default value = None)

InferenceId

: If you provide a value, it is added to the captured data when you enable data capture on the endpoint (Default value = None)

Returns

object: Inference for the given input.


Method clone()

The objects of this class are cloneable with this method.

Usage
LocalSagemakerRuntimeClient$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.