因子分解机响应格式 - Amazon SageMaker
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

因子分解机响应格式

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 } } } ]