Added method train_validate_test based on Hastie-Tibshirani