Update trainingPipe.m