Description Usage Format Details Examples
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.
1 |
The given data sets are delivered in the form of objects of
class nlcv
as produced by the nlcv
function
The objects were created using the code given in the examples section.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.