hdt <- HoeffdingTree(numericEstimator = "GaussianNumericAttributeClassObserver")
hdt
data(iris)
iris <- factorise(iris)
irisdatastream <- datastream_dataframe(data=iris)
## Train the model
hdtreetrained <- trainMOA(model = hdt,
Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width,
data = irisdatastream)
summary(hdtreetrained$model)
Run the code above in your browser using DataLab