All problems
Exploration Temperature Decay
Problem
Decay an exploration temperature geometrically and floor it at min_temp.
Return max(min_temp, start * decay^step).
Hint
The floor keeps some exploration alive no matter how long training runs.
Test cases
case 1
in: [0,1,0.9,0.1]
expected: 1
case 2
in: [5,1,0.9,0.1]
expected: 0.5904900000000001
case 3
in: [20,1,0.9,0.1]
expected: 0.12157665459056935
case 4
in: [100,1,0.9,0.1]
expected: 0.1
Starter codePython
def temperature_decay(step, start, decay, min_temp):
# Your code here
pass4 test cases · run your code against them in the editor