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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容