heuristic_reward
diapason.learning.routing.heuristic_reward
¶
Heuristic reward function — weighted score from latency, cost, efficiency.
HeuristicRewardFunction
¶
Bases: RewardFunction
Computes a scalar reward based on latency, cost, and token efficiency.
Each component is normalised to [0, 1] and combined via a weighted sum.