Amazon SageMaker
Developer Guide

NTM Response Formats

JSON

{ "predictions": [ {"topic_weights": [0.02, 0.1, 0,...]}, {"topic_weights": [0.25, 0.067, 0,...]} ] }

JSONLINES

{"topic_weights": [0.02, 0.1, 0,...]} {"topic_weights": [0.25, 0.067, 0,...]}

RECORDIO

[ Record = { features = {}, label = { 'topic_weights': { keys: [], values: [0.25, 0.067, 0, ...] # float32 } } }, Record = { features = {}, label = { 'topic_weights': { keys: [], values: [0.25, 0.067, 0, ...] # float32 } } } ]

On this page: