Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Real Time Inference Pipeline without Designer

i am currently getting into Azure Machine Learning. I am trying out the learning path for Data Scientists. In that learning path, the Designer is introduced, where Pipelines are being published to be consumed as a real time inference pipeline.

Since I dont want to use the Designer all the time I want to do the same in python. All the tutorials on Microsoft Learn only show how to deploy a single model as a service (e.g. https://learn.microsoft.com/en-us/learn/modules/register-and-deploy-model-with-amls/). In those tutorials pipelines are only created to train models, but not for predictions on incoming data (https://learn.microsoft.com/en-us/learn/modules/create-pipelines-in-aml/). An entry script is used to load incoming data into the pretrained model. For me it is not clear how to implement pipeline steps inside this entry script. I checked online, but I couldnt find any explanation how to do this in a satisfying way. Is there a tutorial of any sort out there to do this?

I am thinking about those pipeline steps, because I would like to do some preprocessing to incoming data using the same scaler I used for training my model. In my eyes loading the training database every time new data is coming in to fit a scaler to the training dataset, seems way of an overload for (near-)real-time models.

I am guessing there is an easy way to do all this, but using the resources I found online, I couldnt come up with a suitable solution for this.

Best regards and Thank you in advance!

like image 689
deguodedongxi Avatar asked Dec 20 '25 07:12

deguodedongxi


1 Answers

The “score.py” exposed in trained_model_outputs is for customized deployment, only have model init and scoring logic, user can add their own pre-process and post-process code on top of that. The scoring logic that having pre-process logic is available through Designer deployed web service, which can be on both AKS and ACI. You can follow this doc: Tutorial: Deploy ML models with the designer - Azure Machine Learning | Microsoft Docs.

like image 196
Ram Avatar answered Dec 23 '25 04:12

Ram



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!