nlcvData(nlcv)
nlcvData()所属R语言包:nlcv
Simulated Datasets to Demonstrate nlcv Functionality
模拟实验演示nlcv功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Four different datasets were simulated using different types and strengths of signal. For each of these datasets a nested loop cross validation procedure is run using each of random forest and t test feature selection.
四种不同的数据集进行了模拟使用不同类型和信号强度。对于每个数据集嵌套循环交叉验证正在运行的程序使用随机森林和t检验功能选择。
用法----------Usage----------
data(nlcvRF_R)
格式----------Format----------
The given data sets are delivered in the form of objects of class nlcv as produced by the nlcv function
类对象的形式交付给定的数据集nlcv生产nlcv功能
Details
详情----------Details----------
The objects were created using the code given in the examples section.
使用的例子一节中给出的代码创建的对象。
举例----------Examples----------
## Not run: [#无法运行:]
### create datasets[#创建数据集]
set.seed(415)
EsetStrongSignal <- simulateData(nCols = 40, nRows = 1000, nEffectRows = 10,
nNoEffectCols = 0, betweenClassDifference = 2, withinClassSd = 0.5)
EsetWeakSignal <- simulateData(nCols = 40, nRows = 1000, nEffectRows = 5,
nNoEffectCols = 0, betweenClassDifference = 1, withinClassSd = 0.6)
EsetWeakHeteroSignal <- simulateData(nCols = 40, nRows = 1000, nEffectRows = 5,
nNoEffectCols = 5, betweenClassDifference = 1, withinClassSd = 0.6)
EsetRandom <- simulateData(nCols = 40, nRows = 1000, nEffectRows = 0,
nNoEffectCols = 0)
### run nested loop cross validation[#运行嵌套循环交叉验证]
nlcvRF_SS <- nlcv(EsetStrongSignal, classVar = "type", nRuns = 10,
fsMethod = "randomForest", verbose = TRUE)
nlcvTT_SS <- nlcv(EsetStrongSignal, classVar = "type", nRuns = 10,
fsMethod = "t.test", verbose = TRUE)
nlcvRF_WS <- nlcv(EsetWeakSignal, classVar = "type", nRuns = 10,
fsMethod = "randomForest", verbose = TRUE)
nlcvTT_WS <- nlcv(EsetWeakSignal, classVar = "type", nRuns = 10,
fsMethod = "t.test", verbose = TRUE)
nlcvRF_WHS <- nlcv(EsetWeakHeteroSignal, classVar = "type", nRuns = 10,
fsMethod = "randomForest", verbose = TRUE)
nlcvTT_WHS <- nlcv(EsetWeakHeteroSignal, classVar = "type", nRuns = 10,
fsMethod = "t.test", verbose = TRUE)
nlcvRF_R <- nlcv(EsetRandom, classVar = "type", nRuns = 10,
fsMethod = "randomForest", verbose = TRUE)
nlcvTT_R <- nlcv(EsetRandom, classVar = "type", nRuns = 10,
fsMethod = "t.test", verbose = TRUE)
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|