| NumpyDeserializer | R Documentation |
Deserialize a stream of data in the .npy or UTF-8 CSV/JSON format. This serializer class uses python numpy package to deserialize, R objects through the use of the 'reticulate' package.
sagemaker.mlcore::BaseDeserializer -> sagemaker.mlcore::SimpleBaseDeserializer -> NumpyDeserializer
npPython Numpy package
dtypeThe dtype of the data
allow_pickleAllow loading pickled object arrays
new()Initialize a “NumpyDeserializer“ instance.
NumpyDeserializer$new( dtype = NULL, accept = "application/x-npy", allow_pickle = TRUE )
dtype(str): The dtype of the data (default: None).
accept(union[str, tuple[str]]): The MIME type (or tuple of allowable MIME types) that is expected from the inference endpoint (default: "application/x-npy").
allow_pickle(bool): Allow loading pickled object arrays (default: True).
deserialize()Deserialize data from an inference endpoint into a NumPy array.
NumpyDeserializer$deserialize(stream, content_type)
stream(botocore.response.StreamingBody): Data to be deserialized.
content_type(str): The MIME type of the data.
matrix: The data deserialized into a R matrix/array.
clone()The objects of this class are cloneable with this method.
NumpyDeserializer$clone(deep = FALSE)
deepWhether to make a deep clone.
Other serializer:
BaseDeserializer,
BaseSerializer,
BytesDeserializer,
CSVDeserializer,
CSVSerializer,
DataTableDeserializer,
IdentitySerializer,
JSONDeserializer,
JSONLinesDeserializer,
JSONLinesSerializer,
JSONSerializer,
LibSVMSerializer,
NumpySerializer,
SimpleBaseDeserializer,
SimpleBaseSerializer,
SparseMatrixSerializer,
StringDeserializer,
TibbleDeserializer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.