Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Weka_attribute_evaluators

R/Weka Attribute Evaluators


Description

R interfaces to Weka attribute evaluators.

Usage

GainRatioAttributeEval(formula, data, subset, na.action, control = NULL)
InfoGainAttributeEval(formula, data, subset, na.action, control = NULL)

Arguments

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 NAs. See model.frame for details.

control

an object of class Weka_control, or a character vector of control options, or NULL (default). Available options can be obtained on-line using the Weka Option Wizard WOW, or the Weka documentation.

Details

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.

Value

A numeric vector with the figures of merit for the attributes specified by the right hand side of formula.

Examples

InfoGainAttributeEval(Species ~ . , data = iris)

RWeka

R/Weka Interface

v0.4-43
GPL-2
Authors
Kurt Hornik [aut, cre] (<https://orcid.org/0000-0003-4198-9911>), Christian Buchta [ctb], Torsten Hothorn [ctb], Alexandros Karatzoglou [ctb], David Meyer [ctb], Achim Zeileis [ctb] (<https://orcid.org/0000-0003-0918-3766>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.