auto generate training and test index vectors