WIP: setting parameters via crossvalidation