A family of reinforcement learning algorithms