
Last chance! 50% off unlimited learning
Sale ends in
sbfControl(functions = NULL,
method = "boot",
saveDetails = FALSE,
number = ifelse(method %in% c("cv", "repeatedcv"), 10, 25),
repeats = ifelse(method %in% c("cv", "repeatedcv"), 1, number),
verbose = FALSE,
returnResamp = "final",
p = 0.75,
index = NULL,
timingSamps = 0,
seeds = NA,
allowParallel = TRUE)
boot
, cv
,
LOOCV
or LGOCV
(for repeated training/test splitsNA
will stop the seed from being set within the worker processes while a value of nbSBF
score
x
y
x
y
Simple filter-based feature selection requires function to be specified for some operations.
The fit
function builds the model based on the current data set. The arguments for the function must be:
x
y
...
sbf
}sbf
, caretSBF
, lmSBF
, rfSBF
, treebagSBF
, ldaSBF
and nbSBF
data(BloodBrain)
## Use a GAM is the filter, then fit a random forest model
RFwithGAM <- sbf(bbbDescr, logBBB,
sbfControl = sbfControl(functions = rfSBF,
verbose = FALSE,
seeds = sample.int(100000, 11),
method = "cv"))
RFwithGAM
Run the code above in your browser using DataLab