introduced cross validation for selecting model parameters