Allow theta to be a matrix, where rows depict different hyperparameters and columns depict features or dimensions. Also force fmin_cobyla optimizer if more than one hyperparameter.