screen.FSelector.relief | R Documentation |
The relief
algorithm implements the RReliefF
(Robnik-Sikonja & Kononenko, 1997) feature quality estimation algorithm,
an extension to ReliefF (Kononenko, 1994) and Relief (Kira & Rendell, 1992)
algorithms. RReliefF is compatible with both classification and regression
problems and is well-suited to X
with strong associations between
features.
screen.FSelector.relief(
Y,
X,
family,
neighbours.count = formals(relief)$neighbours.count,
sample.size = formals(relief)$sample.size,
selector = c("cutoff.biggest.diff", "cutoff.k", "cutoff.k.percent"),
k = switch(selector, cutoff.k = ceiling(0.5 * ncol(X)), cutoff.k.percent = 0.5, NULL),
verbose = FALSE,
...
)
Y |
Outcome (numeric vector). See |
X |
Predictor variable(s) (data.frame or matrix). See
|
family |
Error distribution to be used in the model:
|
neighbours.count |
Number of neighboring observations to find for each
observation sampled from |
sample.size |
Number of observations to sample from |
selector |
A string corresponding to a subset selecting function
implemented in the FSelector package. One of:
|
k |
Passed through to the |
verbose |
Should debugging messages be printed? Default: |
... |
Currently unused. |
A logical vector with length equal to ncol(X)
.
https://www.aaai.org/Library/AAAI/1992/aaai92-020.php, https://doi.org/10.1007/3-540-57868-4_57, http://dl.acm.org/citation.cfm?id=645526.657141
data(iris)
Y <- as.numeric(iris$Species=="setosa")
X <- iris[,-which(colnames(iris)=="Species")]
screen.FSelector.relief(Y, X, binomial(), selector = "cutoff.k.percent", k = 0.75)
data(mtcars)
Y <- mtcars$mpg
X <- mtcars[,-which(colnames(mtcars)=="mpg")]
screen.FSelector.relief(Y, X, gaussian(), neighbours.count = 3, sample.size = 15)
# based on examples in SuperLearner package
set.seed(1)
n <- 100
p <- 20
X <- matrix(rnorm(n*p), nrow = n, ncol = p)
X <- data.frame(X)
Y <- X[, 1] + sqrt(abs(X[, 2] * X[, 3])) + X[, 2] - X[, 3] + rnorm(n)
library(SuperLearner)
sl = SuperLearner(Y, X, family = gaussian(), cvControl = list(V = 2),
SL.library = list(c("SL.glm", "All"),
c("SL.glm", "screen.FSelector.relief")))
sl
sl$whichScreen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.