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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠