Tuning learning rate based on error rate.