how can I preprocess input data before making predictions in sagemaker?

后端 未结 4 1825
暖寄归人
暖寄归人 2021-01-18 07:20

I am calling a Sagemaker endpoint using java Sagemaker SDK. The data that I am sending needs little cleaning before the model can use it for prediction. How can I do that in

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-18 08:01

    You need to write a script and supply that while creating you model. That script would have a input_fn where you can do your preprocessing. Please refer to aws docs for more details.

    https://docs.aws.amazon.com/sagemaker/latest/dg/mxnet-training-inference-code-template.html

提交回复
热议问题