Prompt Flow Evaluation Failed with "The input for batch run is incorrect."

杉山 慎伍 0 Reputation points
2023-11-06T10:28:10.79+00:00

Hello, I am currently doing research on Prompt Flow.

https://learn.microsoft.com/ja-jp/azure/machine-learning/prompt-flow/how-to-bulk-test-evaluate-flow?view=azureml-api-2

When trying to use the above manual to evaluate the performance of a flow using built-in flows, I encountered an error that the batch execution input was incorrect.

  1. Clone the built-in flow "Web Classification".
  2. Open the "Evaluation" option in the upper right corner of the edit screen and specify ${data.url} for the url input.
  3. Select the built-in "Classification Accuracy Evaluation" in the "Evaluation Run" selection. 4) Select the "Evaluation Input Mapping" option.
  4. Specify "groundtruth":${data.category} and "prediction":${run.outputs.category} for the evaluation input mapping.
  5. Job execution of Web Classification-<date>-variant_0-<date>-Classification Accuracy Evaluation-<date> fails.

The error message is as follows:

UserError: The input for batch run is incorrect. Couldn't find these mapping relations: ${data.category}.

The test data is a csv file in the following format.

url, category, evidence

The link listed in the error message was 404 and no solution could be found. Could you please tell me which part is wrong?

Log file is here: Web Classification-10-26-2023-10-05-00-variant_0-202311060519-Classification Accuracy Evaluation-202311060519__.log.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,332 questions
{count} votes

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.