Re: [R] glmnet error: no-comfortable arguments

2016-12-09 Thread David Winsemius
> On Dec 9, 2016, at 2:45 PM, Hu Xinghai wrote: > > I come across the following error training Logistic Regression model using > cv.glmnet: > >> Error in drop(y %*% rep(1, nc)) : error in evaluating the argument 'x' in >> selecting a method for function 'drop': Error in y %*% rep(1, nc) : >> no

[R] glmnet error: no-comfortable arguments

2016-12-09 Thread Hu Xinghai
I come across the following error training Logistic Regression model using cv.glmnet: > Error in drop(y %*% rep(1, nc)) : error in evaluating the argument 'x' in > selecting a method for function 'drop': Error in y %*% rep(1, nc) : > non-conformable arguments > error in evaluating the argument 'x'

[R] glmnet, Error in apply(nz, 1, median) : dim(X) must have a positive length

2014-08-08 Thread Sheila the angel
Hello all, In glmnet package, cv.glmnet is giving error >data(iris) >df<-data.frame(iris$Sepal.Length, iris$Sepal.Width, iris$Petal.Length, iris$Petal.Width) >x<- as.matrix(df) >y<- as.numeric(iris$Species) >fit = glmnet(x, y, family = "multinomial", type.multinomial = "grouped") >plot(fit, xvar =

[R] GLMNET ERROR

2011-08-01 Thread Jeff Allard
Hi All, I am looking for some help figuring out what is causing an error in my attempt to fit a regularized logistic regression (specifically finding the optimal lambda value using cv.glmnet). Running the following command: RegLR_CV<-cv.glmnet(x=train.sub.clean[,-c(431)],y=as.factor(train.sub$fi

Re: [R] glmnet : Error in validObject(.Object) :

2008-12-17 Thread Jorge Ivan Velez
Dear Hao, It works for me. Here is my sessionInfo(): > sessionInfo() R version 2.8.0 Patched (2008-11-08 r46864) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

[R] glmnet : Error in validObject(.Object) :

2008-12-17 Thread Hao
Could any one help ? I start to learn the glmnet package. I tried with the example in the manual. x=matrix(rnorm(100*20),100,20) y=rnorm(100) fit1=glmnet(x,y) When I tried to fit the model, I received the error message: Error in validObject(.Object) : invalid class "dgCMatrix" object: row in