Apprenticeship Learning using Inverse Reinforcement Learning and Gradient Methods