training pipeline script