Defining the training set against the validation set