def decaying(base_rate, decay, t=<NUM_LIT:0>):
while True:<EOL><INDENT>yield base_rate * (<NUM_LIT:1.0> / (<NUM_LIT:1.0> + decay * t))<EOL>t += <NUM_LIT:1><EOL><DEDENT>
Yield an infinite series of linearly decaying values,
    following the schedule:

        base_rate * 1/(1+decay*t)

    Example:

        >>> learn_rates = linear_decay(0.001, 1e-4)
        >>> next(learn_rates)
        0.001
        >>> next(learn_rates)
        0.00999