Formats de réponse Factorization Machines - Amazon SageMaker

Formats de réponse Factorization Machines

Format de réponse JSON

Classification binaire

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

Régression

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

Format de réponse JSONLINES

Classification binaire

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

Régression

{"score": 0.4}

Format de réponse RECORDIO

Classification binaire

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

Régression

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