No need to cast to float, learn_rate is always a float.