Weka_attribute_evaluators | R Documentation |
R interfaces to Weka attribute evaluators.
GainRatioAttributeEval(formula, data, subset, na.action, control = NULL) InfoGainAttributeEval(formula, data, subset, na.action, control = NULL)
formula |
a symbolic description of a model. Note that for unsupervised filters the response can be omitted. |
data |
an optional data frame containing the variables in the model. |
subset |
an optional vector specifying a subset of observations to be used in the fitting process. |
na.action |
a function which indicates what should happen when
the data contain |
control |
an object of class |
GainRatioAttributeEval
evaluates the worth of an attribute by
measuring the gain ratio with respect to the class.
InfoGainAttributeEval
evaluates the worth of an attribute by
measuring the information gain with respect to the class.
Currently, only interfaces to classes which evaluate single attributes (as opposed to subsets, technically, which implement the Weka AttributeEvaluator interface) are possible.
A numeric vector with the figures of merit for the attributes
specified by the right hand side of formula
.
InfoGainAttributeEval(Species ~ . , data = iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.