Reinforcement learning for autonomous driving