Reward module #44
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#37
What to build
Reward computation from game events plus running mean/std normalization.
Raw reward formula:
+(4p + 2(p-1))where p = fire power-(4p_enemy + 2(p_enemy - 1))-5.0per tick of impact-0.1 × p+20.0/ Loss:-10.0Running normalization: maintain running mean and variance, normalize rewards to approximately zero-mean unit-variance before feeding to SAC. This is critical because SAC's entropy term is O(1) and rewards must match that scale.
Acceptance criteria
computeReward()returns correct values for each event type per the formulatest_rewards.nimpassesBlocked by
Reward module complete — all event types, Welford running normalization, cold-start safe. All tests pass.