Reinforcement learning (RL) is a subset of machine learning that uses negative and positive feedback to allow an AI-driven system, or agent, to learn through trial and error.