Gartner interview question

how do you sample (train v. test etc)