Text this: Automatic determination of the learning rate for multivariate and multinomial regression models