Skip to content
DeepForgeby svx
All problems

Evaluation Reward Smoothing

Problem

Exponentially smooth evaluation rewards: alpha * new_reward + (1 - alpha) * previous.

Hint

Smoothing evaluation curves makes checkpoint rankings less noisy.

Test cases

case 1
in: [10,20,0.1]
expected: 11
case 2
in: [10,20,1]
expected: 20
case 3
in: [10,20,0]
expected: 10
Starter codePython
def evaluation_reward_smoothing(previous, new_reward, alpha):
    # Your code here
    pass

3 test cases · run your code against them in the editor