Course2 Week2 Programming Assignment: Optimization Methods

In the assignment exercise8

the expected output is:

Expected output

Original learning rate:  0.5
Updated learning rate after 10 epochs:  0.5
Updated learning rate after 100 epochs:  0.3846153846153846

I wrote the learning decacy code followed the instruction:

learning_rate = ... / (... (...*(abs(...))))

and my learning rate after 10 epochs didn’t match the output, while Original learning rate and after 100 epochs are matched.

The learning rate shall decrease with iteration, therefore the learning rate after 10 epochs shall not be the same as the original, right?

Hi, @Shay.

image is the floor of epoch_num/time_interval, not its absolute value.

Good luck with the assigment :slight_smile:

1 Like

Thanks, I misunderstand the symbol.
Now the problem is fixed. :slightly_smiling_face:

1 Like