I am trying to run Weka AODE class in R using RWeka. The following code returns an error.
library("RWeka")
NB <- make_Weka_classifier("weka/classifiers/bayes/AODE")
classifier <- NB(Species ~ ., data = iris)
And I get this:
Error in .jnew("weka/core/Attribute", attname[i], .jcast(levels, "java/util/List")) :
java.lang.NoSuchMethodError: <init>
I have verified that RWeka/java/RWeka.jar contains the AODE.class file.
when trying to run the naive bayes example in the RWeka manual in cran I get the same error.
Any ideas why I get this error?