improved generic types in the predictive model optimizer and cross validator interface