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

Kumar, Priya 26 Reputation points
2022-02-23T00:53:09.217+00:00

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 Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,893 questions
{count} vote

Accepted answer
  1. Ramr-msft 17,736 Reputation points
    2022-02-24T09:35:29.74+00:00

    @Kumar, Priya 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

    4 people found this answer helpful.

4 additional answers

Sort by: Most helpful
  1. Mirko Moeller 11 Reputation points
    2022-05-25T21:41:46.547+00:00

    @Fernando José Ribeiro Júnior 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)  
    
    2 people found this answer helpful.
    0 comments No comments

  2. Prashanth K 6 Reputation points
    2022-10-10T06:25:59.75+00:00

    Azure ML Studio error while testing real-time endpoint - Input data are inconsistent with schema

    248843-image.png

    Kindly help me to resolve this issue.

    Thanks in Advance

    Regards,
    Prashanth K

    1 person found this answer helpful.
    0 comments No comments

  3. Eason 1 Reputation point
    2022-03-01T07:41:18.553+00:00

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

    0 comments No comments

  4. Matt Eland 76 Reputation points MVP
    2022-04-16T03:22:52.183+00:00

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.