Neural Network Training Using Closed-Loop Data