added learning rate as default parameter