tokens: Whereas Reinforcement Learning ( RL ) tries to find the optimal policy given the dynamics and the reward function , Inverse Reinforcement Learning ( IRL , prussell1998learning , choi2011inverse , babes2011apprenticeship ) tries to find a reward function which best accounts for observed actions from an agent .