sfcb {SISIR} | R Documentation |
sfcb
Description
sfcb
performs interval selection based on random forests
Usage
sfcb(
X,
Y,
group.method = c("adjclust", "cclustofvar"),
summary.method = c("pls", "basics", "cclustofvar"),
selection.method = c("none", "boruta", "relief"),
at = round(0.15 * ncol(X)),
range.at = NULL,
seed = NULL,
repeats = 5,
keep.time = TRUE,
verbose = TRUE,
parallel = FALSE
)
Arguments
X |
input predictors (matrix or data.frame) |
Y |
target variable (vector whose length is equal to the number of rows in X) |
group.method |
group method. Default to |
summary.method |
summary method. Default to |
selection.method |
selection method. Default to |
at |
number of groups targeted for output results (integer). Not used
when |
range.at |
(vector of integer) sequence of the numbers of groups for output results |
seed |
random seed (integer) |
repeats |
number of repeats for the final random forest computation |
keep.time |
keep computational times for each step of the method?
(logical; default to |
verbose |
print messages? (logical; default to |
parallel |
not implemented yet |
Value
an object of class "SFCB"
with elements:
dendro |
a dendrogram corresponding to the method chosen in
|
groups |
a list of length |
summaries |
a list of the same length than |
selected |
a list of the same length than |
mse |
a data.frame with |
importance |
a list of the same length than |
computational.times |
a vector with 4 values corresponding to the
computational times of (respectively) the group, summary, selection, and RF
steps. Only if |
call |
function call |
Author(s)
Remi Servien, remi.servien@inrae.fr
Nathalie Vialaneix, nathalie.vialaneix@inrae.fr
References
Servien, R. and Vialaneix, N. (2023) A random forest approach for interval selection in functional regression. Preprint.
Examples
data(truffles)
out1 <- sfcb(rainfall, truffles, group.method = "adjclust",
summary.method = "pls", selection.method = "relief")
out2 <- sfcb(rainfall, truffles, group.method = "adjclust",
summary.method = "basics", selection.method = "none",
range.at = c(5, 7))