Azure ML Batch Endpoint: How to correctly submit dataset to batch endpoint

Max CH 1 Reputation point
2022-02-14T16:00:52.957+00:00

I built a model using auto ML and deployed it as a batch endpoint.
When I re-use the same dataset I used to train the data I get an error:

ValueError: Length mismatch: Expected axis has 1 elements, new values have 7 elements

I assume, I have to convert the whole thing into some kind of batch first?
I didn't find documentation on how to convert a structured table dataset to a batch. Does anyone know how to do this?

Thank you for the help, best, Max

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,846 questions
Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
329 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ramr-msft 17,736 Reputation points
    2022-02-16T04:11:03.81+00:00

    @Max CH Thanks for the question. Here is the document for Azure ML Batch endpoint for Batch scoring and Troubleshooting batch endpoints.

    Here is a sample that does AutoML Batch Scoring that can help.

    0 comments No comments

  2. Shivapriya Katta 51 Reputation points
    2022-02-17T18:50:58.75+00:00

    Hi Max, I don't how you shaped the data, but I tried to do the below:175562-img1.png

    Is your data somewhere expecting to be reshaped into minibatch_size=(350,1) in the second axis?...because the error says "ValueError: Length mismatch: Expected axis has 1 elements, new values have 7 elements"


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.