MOA_classifier: Create a MOA classifier

Description Usage Arguments Value See Also Examples

View source: R/Classification.R

Description

Create a MOA classifier

Usage

1
MOA_classifier(model, control = NULL, ...)

Arguments

model

character string with a model. E.g. HoeffdingTree, DecisionStump, NaiveBayes, HoeffdingOptionTree, ... The list of known models can be obtained by typing RMOA:::.moaknownmodels. See the examples and MOAoptions.

control

an object of class MOAmodelOptions as obtained by calling MOAoptions

...

options of parameters passed on to MOAoptions, in case control is left to NULL. Ignored if control is supplied

Value

An object of class MOA_classifier

See Also

MOAoptions

Examples

1
2
3
4
5
6
7
8
9
RMOA:::.moaknownmodels
ctrl <- MOAoptions(model = "HoeffdingTree", leafprediction = "MC",
   removePoorAtts = TRUE, binarySplits = TRUE, tieThreshold = 0.20)
hdt <- MOA_classifier(model = "HoeffdingTree", control=ctrl)
hdt
hdt <- MOA_classifier(
 model = "HoeffdingTree",
 numericEstimator = "GaussianNumericAttributeClassObserver")
hdt

RMOA documentation built on May 29, 2017, 8:58 p.m.