MOA_classification_bayes: MOA bayesian classification

Description Usage Arguments Value See Also Examples

Description

MOA bayesian classification

Usage

1
2
3
NaiveBayes(control = NULL, ...)

NaiveBayesMultinomial(control = NULL, ...)

Arguments

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 which sets up an untrained MOA model, which can be trained using trainMOA

See Also

MOAoptions, trainMOA

Examples

1
2
3
ctrl <- MOAoptions(model = "NaiveBayes")
mymodel <- NaiveBayes(control=ctrl)
mymodel

Example output

Loading required package: RMOAjars
OpenJDK 64-Bit Server VM warning: Can't detect initial thread stack location - find_vma failed
Loading required package: rJava
NaiveBayes modelling options: 
MOA model name: Naive Bayes classifier: performs classic bayesian prediction while making naive assumption that all inputs are independent.
Model type: moa.classifiers.bayes.NaiveBayes
model training instances = 0.0
model serialized size (bytes) = -1.0
Model description:
Model has not been trained.Warning message:
system call failed: Cannot allocate memory 

RMOA documentation built on Sept. 22, 2018, 5:04 p.m.