Gartner Interview Question

how do you sample (train v. test etc)