Update learn algorithm.