question

KumarPriya-6121 avatar image
1 Vote"
KumarPriya-6121 asked MirkoMoeller-0692 answered

Azure ML Studio error while testing real-time endpoint - list index out of range

I am new to the Azure ML Studio and just deployed the bike-rental regression model. When I tried to test it using the built in test tool in the studio, I am getting the attached error. Similar results running the Python code as well. Can someone please help me?

176918-mlerror.png



azure-machine-learningazure-machine-learning-studio-classic
mlerror.png (101.3 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KumarPriya-6121 Thanks for the question. Can you please add more details about the train. Are you using the designer/notebook to train.

Here is link to doc for request data.


0 Votes 0 ·

@KumarPriya-6121 Thanks, you can now register a trained model in Designer into the model registry and use automatically generated score.py/conda yaml to deploy it using SDK or CLI. After successful model training, publishing to inference cluster in authenticating to the AKS cluster and consume.


0 Votes 0 ·

Thanks for your response. I tried removing the headers in the CSV and also formatted the JSON to match the document, still same results. I have provided the deployment details.177305-dep2-23.png


0 Votes 0 ·
dep2-23.png (65.2 KiB)
ramr-msft avatar image ramr-msft PriyaKumar-8898 ·

@PriyaKumar-8898 Thanks for the details. We are able to reproduce the issue and same has been forwarded to the product team.

0 Votes 0 ·
ramr-msft avatar image
3 Votes"
ramr-msft answered FernandoJosRibeiroJnior-4000 commented

@KumarPriya-6121 Thanks for the question. It's known issue and the product team working on the fix to change in the UI.

Workaround: As shown below please set the GlobalParameters flag to 1.0 or a float number or remove it.

177485-image.png



image.png (36.9 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for the work around. With the "GlobalParameters" set to a float value, I am getting the prediction results back.

0 Votes 0 ·
ramr-msft avatar image ramr-msft PriyaKumar-8898 ·

@PriyaKumar-8898 Thanks, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread.

0 Votes 0 ·

I was having the same problem, and turning GlobalParameters: 1 to 1.0, it's solved.

But, I'm still having issues with <Response [502]> during deploy.178994-error.png


0 Votes 0 ·
error.png (58.1 KiB)
easonlai avatar image
0 Votes"
easonlai answered

Change GlobalParameters flag value from integer 1 to decimal 1.0 to make it works.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MattEland avatar image
0 Votes"
MattEland answered

What about when making GET requests to the score endpoint or doing a POST? Is there a way of setting the GlobalParameters flag there? I get this just by doing an authorized GET to my endpoint from postman.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MirkoMoeller-0692 avatar image
2 Votes"
MirkoMoeller-0692 answered

@FernandoJosRibeiroJnior-4000 I had to modify the notebook as follows to get it to work:

 x = [[1,1,2022,1,0,6,0,2,0.344167,0.363625,0.805833,0.160446], 
    
     [2,1,2022,1,0,0,0,2,0.363478,0.353739,0.696087,0.248539], 
    
     [3,1,2022,1,0,1,1,1,0.196364,0.189405,0.437273,0.248309], 
    
     [4,1,2022,1,0,2,1,1,0.2,0.212122,0.590435,0.160296], 
    
     [5,1,2022,1,0,3,1,1,0.226957,0.22927,0.436957,0.1869]] 
    
 columns = ["day","mnth", "year", "season", "holiday", "weekday", "workingday", "weathersit", "temp", "atemp", "hum", "windspeed"]
 data = [{columns[i]: v for i, v in enumerate(x_i)} for x_i in x]
    
 request = {
   "Inputs": {
     "data": data
   },
   "GlobalParameters": 0.0 # not sure if this value matters
 }
    
 input_json = json.dumps(request)



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.