Reliability, uncertainty, and costs in the evolution of animal learning. (December 2016)