CSVDeserializer | R Documentation |
Consider using NumpyDeserializer
or
DataTableDeserializer
or TibbleDeserializer
instead,
if you'd like to convert text/csv
responses directly into other data types.
sagemaker.mlcore::BaseDeserializer
-> sagemaker.mlcore::SimpleBaseDeserializer
-> CSVDeserializer
encoding
string encoding to be used
new()
Initialize a “CSVDeserializer“ instance.
CSVDeserializer$new(encoding = "UTF-8", accept = "text/csv")
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").
deserialize()
Takes raw data stream and deserializes it.
CSVDeserializer$deserialize(stream, content_type)
stream
raw data to be deserialize
content_type
(str): The MIME type of the data.
list: The data deserialized into a list of lists representing the contents of a CSV file.
clone()
The objects of this class are cloneable with this method.
CSVDeserializer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other serializer:
BaseDeserializer
,
BaseSerializer
,
BytesDeserializer
,
CSVSerializer
,
DataTableDeserializer
,
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.