Displaying 1 result from an estimated 1 matches for "tp3965744p3965744".
2011 Nov 01
1
predict for a cv.glmnet returns an error
...ct of class "cv.glmnet"
What's wrong?
my code:
x=matrix(rnorm(100*20),100,20)
y=rnorm(100)
cv.fit=cv.glmnet(x,y)
predict(cv.fit,newx=x[1:5,])
coef(cv.fit)
Thanks so much,
Asaf
--
View this message in context: http://r.789695.n4.nabble.com/predict-for-a-cv-glmnet-returns-an-error-tp3965744p3965744.html
Sent from the R help mailing list archive at Nabble.com.