Separate the processor for training and testing phases.