Function in Flux to estimate learning rate

@ oxinabox I humbly stand corrected!
Thank you for the example!