decoupling cpid data generation from training routines.