how to use validation set(in your code I see valMatrix) to select the best model?
how to use validation set(in your code I see valMatrix) to select the best model?