> 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
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'
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 =
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
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
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
6 matches
Mail list logo