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 Respuesta
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
respondido hace 2 años
  • 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?

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas