Multiple metrics
Multiple Metrics
This guide explains how to combine multiple metrics in your reward functions to create more sophisticated evaluation systems.
Overview
RewardKit supports evaluating model responses using multiple metrics simultaneously. This allows you to create nuanced reward functions that consider various aspects of model performance.
Combining Metrics
You can combine multiple metrics using the CompositeReward
class or by implementing custom logic in your reward function.
Example: Accuracy and Length
Best Practices
- Consider the relative importance of each metric
- Use appropriate weights for combining scores
- Test your combined metrics on representative data
- Document your metric combination rationale