MOA_regressor {RMOA} | R Documentation |
Create a MOA regressor
Description
Create a MOA regressor
Usage
MOA_regressor(model, control = NULL, ...)
Arguments
model |
character string with a model.
E.g. AMRulesRegressor, FadingTargetMean, FIMTDD, ORTO, Perceptron, RandomRules, SGD, TargetMean, ...
The list of known models can be obtained by typing RMOA:::.moaknownmodels.
See the examples and |
control |
an object of class |
... |
options of parameters passed on to |
Value
An object of class MOA_regressor
See Also
Examples
mymodel <- MOA_regressor(model = "FIMTDD")
mymodel
data(iris)
iris <- factorise(iris)
irisdatastream <- datastream_dataframe(data=iris)
## Train the model
mytrainedmodel <- trainMOA(model = mymodel,
Sepal.Length ~ Petal.Length + Species, data = irisdatastream)
mytrainedmodel$model
summary(lm(Sepal.Length ~ Petal.Length + Species, data = iris))
predict(mytrainedmodel, newdata=iris)
[Package RMOA version 1.1.0 Index]