因式分解機回應格式 - Amazon SageMaker

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

因式分解機回應格式

JSON 回應格式

二進位分類

let response = { "predictions": [ { "score": 0.4, "predicted_label": 0 } ] }

迴歸

let response = { "predictions": [ { "score": 0.4 } ] }

JSONLINES 回應格式

二進位分類

{"score": 0.4, "predicted_label": 0}

迴歸

{"score": 0.4}

RECORDIO 回應格式

二進位分類

[ Record = { features = {}, label = { 'score’: { keys: [], values: [0.4] # float32 }, 'predicted_label': { keys: [], values: [0.0] # float32 } } } ]

迴歸

[ Record = { features = {}, label = { 'score’: { keys: [], values: [0.4] # float32 } } } ]