Return the objective function of the data and the fitted parameters for nuclear penalized multinomial regression. The objective is the sum of the negative log-likelihood and the product of the regularization parameter and nuclear norm of the fitted regression coefficient matrix. Intended for internal use only.
objective(B, b, X, Y, lambda)
a vector of objective values for the NPMR optimization problem, one for each
value of lambda
fitted regression coefficient matrix
fitted regression intercept vector
covariate matrix
multinomial response matrix
regularization parameter (maybe be a vector of values)
Scott Powers, Trevor Hastie, Rob Tibshirani
Scott Powers, Trevor Hastie and Rob Tibshirani (2016). ``Nuclear penalized multinomial regression with an application to predicting at bat outcomes in baseball.'' In prep.
logL
, nuclear
, objectiveFast