X and Y divided in test and training partitions