confusion(softclassval)
confusion()所属R语言包:softclassval
Performance calculation for soft classification
软分类的性能计算
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These performance measures can be used with prediction and reference being continuous class memberships in [0, 1].
这些性能指标可用于预测和参考类中的成员[0,1]连续。
用法----------Usage----------
confusion(r = stop("missing reference"),
p = stop("missing prediction"), groups = NULL,
operator = "prd", drop = FALSE, .checked = FALSE)
sens(r = stop("missing reference"),
p = stop("missing prediction"), groups = NULL,
operator = "prd", op.dev = dev(match.fun(operator)),
op.postproc = postproc(match.fun(operator)),
eps = 1e-08, drop = FALSE, .checked = FALSE)
spec(r = stop("missing reference"),
p = stop("missing prediction"), ...)
ppv(r = stop("missing reference"),
p = stop("missing prediction"), ..., .checked = FALSE)
npv(r = stop("missing reference"),
p = stop("missing prediction"), ..., .checked = FALSE)
参数----------Arguments----------
参数:r
vector, matrix, or array with reference.
向量,矩阵或阵列提供参考。
参数:p
vector, matrix, or array with predictions
向量,矩阵或数组与预测
参数:groups
grouping variable for the averaging by rowsum. If NULL, all samples (rows) are averaged.
分组变量的平均rowsum。如果NULL“所有样本(行)的平均值。
参数:operator
the operators to be used
operators使用
参数:drop
should the results possibly be returned as vector instead of 1d array? (Note that levels of groups are never dropped, you need to do that e.g. by factor.)
可能返回的结果作为向量,而不是一维数组? (水平groups从来没有下降,你需要做的,例如,通过factor。)
参数:.checked
for internal use: the inputs are guaranteed to be of same size and shape. If TRUE, confusion omits input checking
供内部使用:输入保证是相同尺寸和形状的。如果TRUE,confusion省略了输入检查
参数:eps
limit below which denominator is considered 0
限额以下分母被认为是0
参数:op.dev
does the operator measure deviation?
操作员测量偏差?
参数:op.postproc
if a post-processing function is needed after averaging, it can be given here. See the example.
如果需要平均后的后处理功能,它可以被这里给出。见的例子。
参数:...
handed to sens
交给sens
Details
详细信息----------Details----------
The rows of r and p are considered the samples, columns will usually hold the classes, and further dimensions are preserved but ignored.
行r和p,被认为是样品,列将持有的类,进一步的尺寸将被保留,但会被忽略。
r must have the same number of rows and columns as p, all other dimensions may be filled by recycling.
rp必须具有相同的行数和列数,所有其他的尺寸可以通过回收填充。
spec, ppv, and npv use the symmetry between the performance measures as described in the article and call sens.
spec,ppv和npv使用在文章中所描述的性能测量值之间的对称性,并呼吁sens。
值----------Value----------
numeric of size (ngroups x dim (p) [-1]) with the respective performance measure
数字的大小(NGROUPS Xdim (p) [-1])与各自的性能指标
(作者)----------Author(s)----------
Claudia Beleites
参考文献----------References----------
参见----------See Also----------
Operators: prd
运营商:prd
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|