Hi All, 
I am trying to run cv.glmnet(x,y,family="multinomial", nfolds =4) and I only 
have 8 observations and the number of features I have is 1000, so my x matrix 
is 8 by 1000 and when I run the following, I get this error, I am not sure what 
is causing this problem. 
Error in predmat[which, , seq(nlami)] = preds :   number of items to replace is 
not a multiple of replacement length
Can it be because the number of observations is small?
Thanks a lot,Andra
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to