Factorization Machines Response Formats - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Factorization Machines Response Formats

JSON Response Format

Binary classification

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

Regression

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

JSONLINES Response Format

Binary classification

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

Regression

{"score": 0.4}

RECORDIO Response Format

Binary classification

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

Regression

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