Description Usage Arguments Format Value Source See Also Examples
ID3 - an R/Weka Classifier Trees
1 |
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. |
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
|
A list inheriting from classes Weka_tree and Weka_classifiers. See J48 for a list of the components.
Heavily inspired by the code in the function J48, and the help of Ista Zahn.
J48
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.