MOA_regressor {RMOA} | R Documentation |
Create a MOA regressor
MOA_regressor(model, control = NULL, ...)
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 |
An object of class MOA_regressor
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)