Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

NTM Response Formats

Focus mode
NTM Response Formats - Amazon SageMaker AI

All Amazon SageMaker AI built-in algorithms adhere to the common input inference format described in Common Data Formats - Inference. This topic contains a list of the available output formats for the SageMaker AI NTM algorithm.

JSON Response Format

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

JSONLINES Response Format

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

RECORDIO Response Format

[ 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 } } } ]
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.