While creating sagemaker baseline how to form the json input ?

0

Here(https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-create-baseline.html) it is mentioned "Note that the prediction/output columns are assumed to be the first columns in the training dataset." If our input is flat JSON how to specify the "prediction/output" ?

sashi
질문됨 8달 전193회 조회
1개 답변
0
수락된 답변

looks like it will be follow the pattern below

Input - Flattened JSON {"feature0": <value>, "feature1": <value>...} - Tabular "<value>, <value>..." - Output: - Flattened JSON {"prediction0": <value>, "prediction1": <value>...} - Tabular "<value>, <value>..."

Refer -> (https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-pre-and-post-processing.html#model-monitor-pre-processing-script) " For example, suppose the output of your model is an array [1.0, 2.1]. The Amazon SageMaker Model Monitor container only works with tabular or flattened JSON structures, like {“prediction0”: 1.0, “prediction1” : 2.1}. You could use a preprocessing script like the following to transform the array into the correct JSON structure."

sashi
답변함 8달 전

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

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

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

관련 콘텐츠