search for: nlami

Displaying 1 result from an estimated 1 matches for "nlami".

Did you mean: nami
2011 Aug 11
1
Cv.glment question -- why giving me an error
...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]]