To do for multiclass and glmnet.