-
I know this has got something to do with the Micro-batching feature. I have two questions on the above:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
For Q2: |
Beta Was this translation helpful? Give feedback.
-
Great questions @jiyer2016 2 DataframeInput in BentoML treats each row in the 1 Adapters do not take effect when calling directly from the BentoService's class method in Python. In tests, you will need to convert the array to a |
Beta Was this translation helpful? Give feedback.
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].