cross validation parameter selection implemented