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 個月前檢視次數 194 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南