Compute the learning rate after t steps under exponential decay: ηt=η0γt, where lr0 is the initial rate and gamma the per-step decay factor.
Implement solve(lr0,gamma,t).
Returns. Return the learning rate as a float.
Example 1
Input:
solve(0.1, 0.9, 5)
Output:
0.059049
Example 2
Input:
solve(1.0, 0.5, 3)
Output:
0.125
No results yet
Run your code to check it against the examples, or submit to run every test.