move check for grid objective to learner.train
test for invalid learner/objective combination