githubEdit

Ground Truth

Ground truth feedback consists of actual, real-world values that correspond to a model's predictions. Comparing ground truth to model predictions allows for the calculation of model performance metrics. For the Model Performance Metrics module, it is critical to ensure that the ground truth data represents the full distribution of predictions. This helps prevent biased evaluations and ensures that performance metrics accurately reflect real-world model behavior across different input scenarios.

Feedback must include:

  • Model name,

  • Pipeline name,

  • namespace,

  • The unique inference request ID for the corresponding prediction, and

  • A feedback object containing the feedback type and ground truth value.

By providing all of this information, the module can accurately match the feedback with the inference response.

circle-exclamation

Inference Request ID

The inference request ID corresponds to the inference response ID and can be retrieved from the x-request-id header when making the inference request to the inference server.

For more information on retrieving inference request IDs, please refer to the Kafka messages processing section.

Consuming Kafka Eventschevron-right

Example

The example below illustrates how to provide ground truth feedback for the Irisarrow-up-right classification model:

If feedback is provided for a regression model, the feedback request should look as follows:

circle-check

View the Feedback API Swagger docs in the [API Reference](../resources/api-reference.md#feedback-api).

Last updated

Was this helpful?