borrowing training and test sets