Update learning algorithm.