Skip to content

Why does the JsonInputAdapter wrap the json request into a list when served via flask ? #1067

Answered by bojiang
jiyer2016 asked this question in General
Discussion options

You must be logged in to vote

For Q2:
In an ordinary model training procedure, we often see a DataFrame as a batch of data, and the batch dimension is the rows of the DataFrame.
For data in JSON format, generally it is an object like this: {"name": "jeff"}, which represents a single record.
So for the former, what micro-batching does is concat(df1, df2); for the latter, it is [json1, json2].

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jiyer2016
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants