DP-100 · Question #140
You train and register a model in your Azure Machine Learning workspace. You must publish a pipeline that enables client applications to use the model for batch inferencing. You must use a pipeline…
The correct answer is A. run(mini_batch) D. init(). A ParallelRunStep batch inferencing script requires exactly two functions: init() and run(mini_batch). init() is called once per worker when the parallel run starts-it is used to load the model into memory. run(mini_batch) is called repeatedly with each mini-batch of input data…
Question
Options
- Arun(mini_batch)
- Bmain()
- Cbatch()
- Dinit()
- Escore(mini_batch)
How the community answered
(26 responses)- A92% (24)
- B4% (1)
- C4% (1)
Explanation
A ParallelRunStep batch inferencing script requires exactly two functions: init() and run(mini_batch). init() is called once per worker when the parallel run starts-it is used to load the model into memory. run(mini_batch) is called repeatedly with each mini-batch of input data and must return the predictions. The function main() is not part of the ParallelRunStep API. batch() does not exist as a required function. score(mini_batch) follows the real-time inferencing (scoring script) convention, not the batch ParallelRunStep convention.
Topics
Community Discussion
No community discussion yet for this question.