stab.fs(genefu)
stab.fs()所属R语言包:genefu
Function to quantify stability of feature selection.
功能量化特征选择的稳定性。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function computes several indexes to quantify feature selection stability. This is usually estimated through perturbation of the original dataset by generating multiple sets of selected features.
此函数计算几个指标量化特征选择稳定。这通常是通过产生所选功能的多套原始数据集的扰动估计。
用法----------Usage----------
stab.fs(fsets, N, method = c("kuncheva", "davis"), ...)
参数----------Arguments----------
参数:fsets
list of sets of selected features, each set of selected features may have different size
列表中选定的功能集,每一组选定的功能可能有不同的大小
参数:N
total number of features on which feature selection is performed
总数上进行功能选择功能
参数:method
stability index (see details section)
稳定指数(见细节部分)
参数:...
additional parameters passed to stability index (penalty that is a numeric for Davis' stability index, see details section)
额外的参数传递到稳定指数(penalty这是一个戴维斯稳定性指数的数字,看到细节部分)
Details
详情----------Details----------
Stability indices may use different parameters. In this version only the Davis index requires an additional parameter that is penalty, a numeric value used as penalty term.
稳定指数可能会使用不同的参数。在这个版本中,只有戴维斯指数需要一个额外的参数,是penalty,作为惩罚项的数值。
Kuncheva index (kuncheva) lays in [-1, 1], An index of -1 means no intersection between sets of selected features, +1 means that all the same features are always selected and 0 is the expected stability of a random feature selection.
kuncheva指数(kuncheva)在[-1,1]的规定,指数为-1意味着没有选定的功能,+1指集之间的交叉点,所有相同的功能,总是选择和0是预期的稳定一个随机的特征选择。
Davis index (davis) lays in [0,1], With a pnalty term equal to 0, an index of 0 means no intersection between sets of selected features and +1 means that all the same features are always selected. A penalty of 1 is usually used so that a feature selection performed with no or all features has a Davis stability index equals to 0. None estimate of the expected Davis stability index of a random feature selection was published.
戴维斯指数(davis)规定,随着pnalty术语等于0,索引为0意味着没有选择功能+1意味着所有相同的功能总是选择集之间的交集,在[0,1]。罚款1通常用来使任何或所有功能进行特征选择戴维斯稳定性指数等于0。没有发表戴维斯预期的随机特征选择的稳定性指数的估计。
值----------Value----------
A numeric that is the stability index
一个数字是稳定指数
作者(S)----------Author(s)----------
Benjamin Haibe-Kains
参考文献----------References----------
参见----------See Also----------
stab.fs.ranking
stab.fs.ranking
举例----------Examples----------
set.seed(54321)
## 100 random selection of 50 features from a set of 10,000 features[#100随机选择50功能,一套10000特征]
fsets <- lapply(as.list(1:100), function(x, size=50, N=10000) {
return(sample(1:N, size, replace=FALSE))} )
names(fsets) <- paste("fsel", 1:length(fsets), sep=".")
## Kuncheva index[#Kuncheva指数]
stab.fs(fsets=fsets, N=10000, method="kuncheva")
## close to 0 as expected for a random feature selection[#0为一个随机的特征选择的预期]
## Davis index[#戴维斯指数]
stab.fs(fsets=fsets, N=10000, method="davis", penalty=1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|