changing slightly the trainer to ensure it does train on consistent subdatasets