SparkMLPredictor | R Documentation |
The implementation of :meth:'~sagemaker.predictor.Predictor.predict' in this 'Predictor' requires a json as input. The input should follow the json format as documented. “predict()“ returns a csv output, comma separated if the output is a list.
sagemaker.mlcore::PredictorBase
-> sagemaker.mlcore::Predictor
-> SparkMLPredictor
new()
Initializes a SparkMLPredictor which should be used with SparkMLModel to perform predictions against SparkML models serialized via MLeap. The response is returned in text/csv format which is the default response format for SparkML Serving container.
SparkMLPredictor$new( endpoint_name, sagemaker_session = NULL, serializer = CSVSerializer$new(), ... )
endpoint_name
(str): The name of the endpoint to perform inference on.
sagemaker_session
(sagemaker.session.Session): Session object which manages interactions with Amazon SageMaker APIs and any other AWS services needed. If not specified, the estimator creates one using the default AWS configuration chain.
serializer
(sagemaker.serializers.BaseSerializer): Optional. Default serializes input data to text/csv.
...
: Additional parameters passed to the :class:'~sagemaker.Predictor' constructor.
clone()
The objects of this class are cloneable with this method.
SparkMLPredictor$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.