how does input_fn, predict_fn and output_fn work in aws sagemaker script mode?

0

i am trying to understand how input_fn, predict_fn and outout_fn work? I am able to understand what they are, but I am not able to understand how they are called (invoked), can anyone help me understand the same

1回答
1

Hi,

Take a look at this implementation using scikit_learn

They are all implemented as part of the HandlerService object.

  • input_fn for preprocessing when data comes in
  • predict_fn for making a prediction
  • output_fn for postprocessing

Generally, input_fn and output_fn have default implementations provided by SageMaker, but predict_fn does not.

AWS
回答済み 2年前
  • Hi, thanks for the answer, so it means model_fn needs to be mandatorily implemented (overriden) and we can ignore overriding/defining input_fn, predict_fn and output_fn methods while writing entry point script?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ