| DataTableDeserializer | R Documentation |
Deserialize CSV or JSON data from an inference endpoint into a data.table.
sagemaker.mlcore::BaseDeserializer -> sagemaker.mlcore::SimpleBaseDeserializer -> DataTableDeserializer
encodingstring encoding to be used
new()Initialize a “DataTableDeserializer“ instance.
DataTableDeserializer$new(
encoding = "UTF-8",
accept = c("text/csv", "application/json")
)encoding(str): The string encoding to use (default: "UTF-8").
accept(union[str, tuple[str]]): The MIME type (or tuple of allowable MIME types) that is expected from the inference endpoint (default: ("text/csv","application/json")).
deserialize()Deserialize CSV or JSON data from an inference endpoint into a data.table. If the data is JSON, the data should be formatted in the 'columns' orient.
DataTableDeserializer$deserialize(stream, content_type)
stream(botocore.response.StreamingBody): Data to be deserialized.
content_type(str): The MIME type of the data.
data.table: The data deserialized into a data.table.
clone()The objects of this class are cloneable with this method.
DataTableDeserializer$clone(deep = FALSE)
deepWhether to make a deep clone.
Other serializer:
BaseDeserializer,
BaseSerializer,
BytesDeserializer,
CSVDeserializer,
CSVSerializer,
IdentitySerializer,
JSONDeserializer,
JSONLinesDeserializer,
JSONLinesSerializer,
JSONSerializer,
LibSVMSerializer,
NumpyDeserializer,
NumpySerializer,
SimpleBaseDeserializer,
SimpleBaseSerializer,
SparseMatrixSerializer,
StringDeserializer,
TibbleDeserializer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.