I get the results:

Original learning rate: 0.5

Updated learning rate after 10 epochs: 0.4854368932038835

Updated learning rate after 100 epochs: 0.3846153846153846

However the expected results are:

Original learning rate: 0.5

Updated learning rate after 10 epochs: 0.5

Updated learning rate after 100 epochs: 0.3846153846153846

How come the results after 10 epochs don’t change? They seem they should change. For the record I am uisng the following line to calculate learning_rate:

*{moderator edit - solution code removed}*