predict.cv.sparsenet(sparsenet)
predict.cv.sparsenet()所属R语言包:sparsenet
make predictions from a "cv.sparsenet" object.
作出预测从的“cv.sparsenet”对象。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function makes predictions from a cross-validated sparsenet model, using the stored "sparsenet.fit" object, and the optimal value chosen for lambda.
此功能从一个交叉验证sparsenet的模型进行预测,使用的存储"sparsenet.fit"对象,并选择lambda的最佳值。
用法----------Usage----------
## S3 method for class 'cv.sparsenet'
predict(object, newx, which=c("parms.min","parms.1se"),...)
## S3 method for class 'cv.sparsenet'
coef(object, which=c("parms.min","parms.1se"),...)
参数----------Arguments----------
参数:object
Fitted "cv.sparsenet" object.
配"cv.sparsenet"对象的。
参数:newx
Matrix of new values for x at which predictions are to be made. Must be a matrix. See documentation for predict.sparsenet.
矩阵x的预测是进行新的价值。必须是一个矩阵。请参阅文档predict.sparsenet。
参数:which
Either the paramaters of the minimum of the CV curves (default "parms.min" or the parameters corresponding to the one standard-error rule parms.1se)
无论是paramaters最低的CV曲线(默认"parms.min"或参数对应的一个标准错误规则parms.1se)
参数:...
Not used. Other arguments to predict.
未使用。其他参数预测。
Details
详细信息----------Details----------
This function makes it easier to use the results of
此功能使得它更容易使用的结果
值----------Value----------
The object returned depends the ... argument which is passed on
返回的对象取决于...参数,它是通过
(作者)----------Author(s)----------
Rahul Mazumder, Jerome Friedman and Trevor Hastie
Maintainer: Trevor Hastie <hastie@stanford.edu>
参考文献----------References----------
参见----------See Also----------
glmnet package, sparsenet, cv.sparsenet and
glmnet包,sparsenet,cv.sparsenet和
实例----------Examples----------
x=matrix(rnorm(100*20),100,20)
y=rnorm(100)
fitcv=cv.sparsenet(x,y)
predict(fitcv,x)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|