How to Train your robot