Management of a training and validation dataset