找回密码
 注册
查看: 404|回复: 0

R语言 spa包 update.spa()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 14:22:12 | 显示全部楼层 |阅读模式
update.spa(spa)
update.spa()所属R语言包:spa

                                        Update procedure for transductive prediction with the SPA
                                         直推式预测的SPA更新程序

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

This implements the transductive prediction for an spa object.  It performs regularization/region approach for transductive prediction. In addition it can also updates an existing spa object with new transductive estimate.
这实现了直推式的预测温泉对象。进行正规化/区域的直推式预测方法。此外,它也可以更新新的直推式现有的温泉对象的估计。


用法----------Usage----------


## S3 method for class 'spa'
update(object,ynew,xnew,gnew,
                     type=c("vector","probs","coef","all"),
                     reg=c("ridge","hlasso"),trans.update=FALSE,
                     dat=list(k=0,l=Inf),verbose=FALSE,FUN=sum,...)



参数----------Arguments----------

参数:object
an object of type spa
对象类型spa,


参数:ynew
an object of type spa
对象类型spa,


参数:xnew
an object of type spa
对象类型spa,


参数:gnew
an object of type spa
对象类型spa,


参数:type
the type of predictions in classification, classes, probabilities or both.  In the case of both the object will return an additional penalty vector corresponding to the rate function for each case.
在分类的预测,类,概率或两者的类型。在该对象的情况下,将对应于每一种情况下的速率函数返回一个附加罚款矢量。


参数:reg
for regression it is automatically taken as a ridge penalty.  In the case of classification one can use either ridge or the hyperbolic l1 penalty (hlasso).
的回归,它会自动采取的作为脊处罚。在分类的情况下,人们可以使用脊或双曲l1罚(hlasso)。


参数:trans.update
comming soon
即将推出


参数:verbose
comming soon
即将推出


参数:dat
data driven estimation routine consists of list k for the number of vertex sets, and l for the regularization (see reference). default dat=list(k=0,l=Inf)
数据驱动估计例程由列表k为顶点集的数目,和l的正则化(见参考文献)。默认的DAT =列表(k = 0时,升= Inf文件)


参数:FUN
measure used to sort WUL, the unlabeled-labeled partition.  The FUN=sum multiplies WUL times a vector of ones, others may include max.
测量用来排序WUL,未标记的标记的分区。 FUN =总和乘以WUL的时代的一个向量,其他人可能包括最大。


参数:...
additional arguments passed into the function
额外的参数传递给函数的


(作者)----------Author(s)----------


Mark Culp



参考文献----------References----------


M. Culp (2011). spa: A Semi-Supervised R Package for Semi-Parametric Graph-Based Estimation. Journal of Statistical Software, 40(10), 1-29. URL http://www.jstatsoft.org/v40/i10/.


实例----------Examples----------


## Use simulated example (two moon)[#使用模拟的例子(两个月亮)]
set.seed(100)
dat=spa.sim(type="moon")

##Use spa to train with a supervised/transductive kernel smoother[#使用水疗中心,训练与顺畅一个监督/直推式内核]
gsemi<-spa(dat$y,graph=as.matrix(daisy(dat[,-1])))

##Use spa to update the object with new data[#使用水疗中心,用新的数据更新对象]
dat<-rbind(dat,spa.sim(100,0))
gsemi<-update(gsemi,ynew=dat$y,,as.matrix(daisy(dat[,-1])),trans.update=TRUE)


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-17 03:08 , Processed in 0.030083 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表