| SimpleBaseSerializer | R Documentation |
This class extends the API of BaseSerializer with more
user-friendly options for setting the Content-Type header, in situations where it can be
provided at init and freely updated.
sagemaker.mlcore::BaseSerializer -> SimpleBaseSerializer
content_typeThe data MIME type
CONTENT_TYPEThe data MIME type set in the Content-Type header on prediction endpoint requests.
new()Initialize a SimpleBaseSerializer instance.
SimpleBaseSerializer$new(content_type = "application/json")
content_type(str): The MIME type to signal to the inference endpoint when sending request data (default: "application/json").
serialize()Take data of various data formats and serialize them into CSV.
SimpleBaseSerializer$serialize(data)
data(object): Data to be serialized
clone()The objects of this class are cloneable with this method.
SimpleBaseSerializer$clone(deep = FALSE)
deepWhether to make a deep clone.
Other serializer:
BaseDeserializer,
BaseSerializer,
BytesDeserializer,
CSVDeserializer,
CSVSerializer,
DataTableDeserializer,
IdentitySerializer,
JSONDeserializer,
JSONLinesDeserializer,
JSONLinesSerializer,
JSONSerializer,
LibSVMSerializer,
NumpyDeserializer,
NumpySerializer,
SimpleBaseDeserializer,
SparseMatrixSerializer,
StringDeserializer,
TibbleDeserializer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.