updating learning and testing pipeline with final parameters