Closes #1643 cross validation. Closes #1644 empty params bug