updated regressionTrain to operate on ListBuffers;