build test and training sets from sequences; recalculates mse for order-ignorant classifier