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

R语言 sperrorest包 partition.disc()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 15:03:16 | 显示全部楼层 |阅读模式
partition.disc(sperrorest)
partition.disc()所属R语言包:sperrorest

                                        Leave-one-disc-out cross-validation and leave-one-out cross-validation
                                         留一盘的交叉验证和休假的交叉验证

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

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

partition.disc partitions the sample into training and tests set by selecting circular test areas (possibly surrounded by an exclusion buffer) and using the remaining samples as training samples (leave-one-disc-out cross-validation). partition.loo creates training and test sets for leave-one-out cross-validation with (optional) buffer.
partition.disc分区选择循环试验区(可能排除缓冲包围),并利用其余的样本作为训练样本(留一盘交叉验证)为训练和测试样本。 partition.loo创建训练集和测试集留一法交叉验证(可选)缓冲。


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


  partition.disc(data, coords = c("x", "y"), radius,
    buffer = NULL, ndisc = nrow(data), seed1 = NULL,
    return.train = TRUE, prob = NULL, replace = FALSE,
    repetition = 1)

  partition.loo(data, ndisc = nrow(data), replace = FALSE,
    ...)



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

参数:coords
vector of length 2 defining the variables in data that contain the x and y coordinates of sample locations
向量,长度为2data包含的x和y坐标的样本的位置定义的变量在


参数:radius
radius of test area discs; performs leave-one-out resampling if radius <0
试验区半径光盘执行留一出重采样半径<0


参数:buffer
radius of additional 'neutral area' around test area discs that is excluded from training and test sets; defaults to 0, i.e. all samples are either in the test area or in the training area.
半径额外的“中立区”周围被排除在训练和测试集试验区的光盘,默认为0,即所有样本都在测试或培训领域。


参数:ndisc
Number of discs to be randomly selected; each disc constitutes a separate test set. Defaults to nrow(data), i.e. one disc around each sample.
光盘中随机抽取,每个圆盘构成一个单独的测试集。默认为nrow(data),即视盘周围每个样品。


参数:return.train
If FALSE, returns only test sample; if TRUE, also the training area.
如果FALSE,只返回测试样品; TRUE,也训练场。


参数:prob
optional argument to sample
可选参数sample


参数:replace
optional argument to sample: sampling with or without replacement?
可选参数sample:抽样或不更换?


参数:repetition
see partition.cv; however, see Note below: repetition should normally be =1 in this function.
看到partition.cv,但是,请参阅下面的“注”:repetition一般应是=1在这个函数中。


参数:...
arguments to be passed to partition.disc
参数被传递给partition.disc


参数:data
data.frame containing at least the columns specified by coords
data.frame的至少包含列指定的coords


参数:seed1
seed1+i is the random seed that will be used by set.seed in repetition i (i in repetition) to initialize the random number generator before sampling from the data set.
seed1+i是随机的种子,将用于set.seed重复i(irepetition)采样前的数据初始化随机数生成器设置。


值----------Value----------

A represampling object. Contains length(repetition) resampling objects. Each of these contains ndisc lists with indices of test and (if return.train=TRUE) training sets.
Arepresampling对象。包含length(repetition)resampling的对象。所有这些包含ndisc指标的测试列表(如果return.train=TRUE)的训练集。


注意----------Note----------

Test area discs are centered at (random) samples, not at general random locations. Test area discs may (and likely will) overlap independently of the value of replace. replace only controls the replacement of the center point of discs when drawing center points from the samples. radius<0 does leave-one-out resampling with an optional buffer. radius=0 is similar except that samples with identical coordinates would fall within the test area disc.
盘都集中在测试区(随机)的样品,而不是一般的随机位置。试验区盘(可能会)重叠独立的价值replace。 replace只控制更换的光盘绘制中心点时,从样品的中心点。 radius<0不留一出重采样与一个可选的缓冲区。 radius=0是类似,只不过,样品具有相同的坐标范围内的试验区盘。


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

landslide hazards: review, comparison and evaluation. Natural Hazards and Earth System Sciences, 5(6): 853-862.

参见----------See Also----------

sperrorest, partition.cv, partition.kmeans
sperrorest,partition.cv,partition.kmeans


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


data(ecuador)
parti = partition.disc(ecuador, radius=200, buffer=200, ndisc=5, repetition=1:2)
plot(parti,ecuador)
summary(parti)
# leave-one-out with buffer:[离开了缓冲:]
parti.loo = partition.loo(ecuador, buffer=200)
summary(parti)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 19:08 , Processed in 0.032740 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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