pass on learning rate during train function