Computes the objective function for NPMR more quickly than objective by
leveraging pre-computed fitted values, which is the bottleneck in
computing the objective. Intended for internal use only.
objectiveFast(B, P, W, lambda)a vector of objective values for the NPMR optimization problem, one for each
value of lambda
fitted regression coefficient matrix
matrix of fitted multinomial class probabilities
vector containing indices of P which correspond to observed data
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.
objective, nuclear, PGDnpmr