Reinforcement learning is a computational approach to understanding and automating goal-directed learning and decision-making.