CSVSerializer | R Documentation |
Make Raw data using text/csv format
sagemaker.mlcore::BaseSerializer
-> sagemaker.mlcore::SimpleBaseSerializer
-> CSVSerializer
new()
Initialize a CSVSerializer
instance.
CSVSerializer$new(content_type = "text/csv")
content_type
(str): The MIME type to signal to the inference endpoint when sending request data (default: "text/csv").
serialize()
Take data of various data formats and serialize them into CSV.
CSVSerializer$serialize(data)
data
(object): Data to be serialized. Any list of same length vectors; e.g. data.frame and data.table. If matrix, it gets internally coerced to data.table preserving col names but not row names
clone()
The objects of this class are cloneable with this method.
CSVSerializer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other serializer:
BaseDeserializer
,
BaseSerializer
,
BytesDeserializer
,
CSVDeserializer
,
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.