Learning to throw through prediction and feedback