com.amazonaws.services.sagemaker.sparksdk.transformation.serializers
Returns com.amazonaws.services.sagemaker.sparksdk.transformation.ContentTypes.TEXT_LIBSVM
the name of the features column
The schema for Row objects being serialized by RequestRowSerializer#serializeRow
The schema for Row objects being serialized by RequestRowSerializer#serializeRow
Serializes an object to an Array of bytes for transformation by a SageMaker endpoint
Serializes an object to an Array of bytes for transformation by a SageMaker endpoint
The row to serialize
An Array[Byte]
Sets the rowSchema for this RequestRowSerializer.
Sets the rowSchema for this RequestRowSerializer. Invokes validateSchema on the specified schema.
This method must be invoked before calling serializeRow if no schema was set when this RequestRowSerializer was constructed.
Validates that the specified schema contains a Double column with name labelColumnName and a Vector column with name featuresColumnName.
Validates that the specified schema contains a Double column with name labelColumnName and a Vector column with name featuresColumnName.
java.lang.IllegalArgumentException
if the specified schema is invalid
Extracts a features column from a Row and serializes as a LibSVM record. Each serialized LibSVM record has a label of 0.
Each Row must contain a Vector column with name featuresColumnName.