Reaping the rewards of apprenticeship learning