attrEval(formula, data, estimator, costMatrix = NULL, outputNumericSplits=FALSE, ...)binaryEvaluateNumericAttributes=TRUE shall not be modified. If the value of
outputNumericSplits the output is a list instead of vector, see the returned value description.helpCore.binaryEvaluateNumericAttributes=TRUE the method returns a list with two components:
attrEval and splitPointNum. The attrEval contains
a vector of evaluations for the features in the order specified by the formula. The splitPointNum
contains the split points of numeric attributes which produced the given attribute evaluation scores.
formula can be interpreted in three ways, where the formula interface is the most elegant one,
but inefficient and inappropriate for large data sets. See also examples below. As formula one can specify:
infoCore(what="attrEval") and for
regression problem it must be one of the names returned by infoCore(what="attrEvalReg")
Majority of these feature evaluation measures are described in the references given below,
here only a short description is given. For classification problem they are
helpCore. See Section on attribute evaluation.
The attributes can also be evaluated via random forest out-of-bag set with function rfAttrEval.
Evaluation and visualization of ordered attributes is covered in function ordEval.
Some of these references are available also from http://lkm.fri.uni-lj.si/rmarko/papers/
CORElearn,
CoreModel,
rfAttrEval,
ordEval,
helpCore,
infoCore.
# use iris data
# run method ReliefF with exponential rank distance
estReliefF <- attrEval(Species ~ ., iris,
estimator="ReliefFexpRank", ReliefIterations=30)
print(estReliefF)
# alternatively and more appropriate for large data sets
# one can specify just the target variable
# estReliefF <- attrEval("Species", iris, estimator="ReliefFexpRank", ReliefIterations=30)
# print all available estimators
infoCore(what="attrEval")
Run the code above in your browser using DataLab