ID3: ID3 - an R/Weka Classifier Trees

Description Usage Arguments Format Value Source See Also Examples

Description

ID3 - an R/Weka Classifier Trees

Usage

1

Arguments

formula

a symbolic description of the model to be fit.

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 giving options to be passed to the Weka learner. Available options can be obtained on-line using the Weka Option Wizard WOW, or the Weka documentation.

...

not used.

Format

1
2
3
4
5
6
7
function (formula, data, subset, na.action, control = Weka_control(), options = NULL)  
 - attr(*, "class")= chr [1:2] "R_Weka_classifier_interface" "R_Weka_interface"
 - attr(*, "meta")=List of 4
  ..$ name : chr "weka/classifiers/trees/Id3"
  ..$ kind : chr "R_Weka_classifier_interface"
  ..$ class: chr "Weka_classifier"
  ..$ init : NULL

Value

A list inheriting from classes Weka_tree and Weka_classifiers. See J48 for a list of the components.

Source

Heavily inspired by the code in the function J48, and the help of Ista Zahn.

See Also

J48

Examples

1
2
3
4
5
6
7
## Not run: 
 library(RWeka)
 DF2 <- read.arff(system.file("arff", "contact-lenses.arff", package = "RWeka"))
 load_simpleEducationalLearningSchemes()
 ID3(`contact-lenses` ~ ., data = DF2)

## End(Not run)

talgalili/HBP documentation built on May 31, 2019, 2:52 a.m.