attrEval(formula, data, estimator, costMatrix = NULL, ...)helpCore
.class ~ ..
In this case all other attributes in the data set are evaluated.
See also example below.
The optional parameter costMatrix can provide nonuniform cost matrix to classification
cost-sensitive measures (ReliefFexpC, ReliefFavgC, ReliefFpe, ReliefFpa, ReliefFsmp,GainRatioCost,
DKMcost, ReliefKukar, and MDLsmp). For other measures this parameter is ignored.
The format of the matrix is costMatrix(true class, predicted class).
By default a uniform costs are assumed, i.e., costMatrix(i, i) = 0, and costMatrix(i, j) = 1, for i not equal to j.
The estimator parameter selects the evaluation heuristics. For classification problem it
must be one of the names returned by 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
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
For regression problem the implemented measures are:
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
There are some additional parameters ... available which are used by specific evaluation heuristics.
Their list and short description is available by calling 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
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)
# print all available estimators
infoCore(what="attrEval")Run the code above in your browser using DataLab