SimpleBaseDeserializer: Abstract base class for creation of new deserializers.

SimpleBaseDeserializerR Documentation

Abstract base class for creation of new deserializers.

Description

This class extends the API of BaseDeserializer with more user-friendly options for setting the ACCEPT content type header, in situations where it can be provided at init and freely updated.

Super class

sagemaker.mlcore::BaseDeserializer -> SimpleBaseDeserializer

Public fields

accept

The MIME type that is expected from the inference endpoint

Active bindings

ACCEPT

The tuple of possible content types that are expected from the inference endpoint.

Methods

Public methods

Inherited methods

Method new()

Initialize a “SimpleBaseDeserializer“ instance.

Usage
SimpleBaseDeserializer$new(accept = "*/*")
Arguments
accept

(union[str, tuple[str]]): The MIME type (or tuple of allowable MIME types) that is expected from the inference endpoint (default: "*/*").


Method clone()

The objects of this class are cloneable with this method.

Usage
SimpleBaseDeserializer$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Other serializer: BaseDeserializer, BaseSerializer, BytesDeserializer, CSVDeserializer, CSVSerializer, DataTableDeserializer, IdentitySerializer, JSONDeserializer, JSONLinesDeserializer, JSONLinesSerializer, JSONSerializer, LibSVMSerializer, NumpyDeserializer, NumpySerializer, SimpleBaseSerializer, SparseMatrixSerializer, StringDeserializer, TibbleDeserializer


DyfanJones/sagemaker-r-mlcore documentation built on May 3, 2022, 10:08 a.m.