Hi,
is it possible to use the writer method from the
weka.core.SerializationHelper class in R?
When yes, what could be wrong in my trial.
many thanks
Christian
.jmethods("weka/core/SerializationHelper")
[2] "public static void
weka.core.SerializationHelper.write(java.lang.String,java.lang.Object)
throws java.lang.Exception"
> NB <- make_Weka_classifier("weka/classifiers/bayes/NaiveBayes")
> data("HouseVotes84", package = "mlbench")
> model <- NB(Class ~ ., data = HouseVotes84)
>
>
.jcall("weka/core/SerializationHelper",returnSig="V","write","nb.model",model)
Fehler in .jcall("weka/core/SerializationHelper", returnSig = "V",
"write", :
method write with signature (Ljava/lang/String;)V not found
>
.jcall("weka/core/SerializationHelper",returnSig="V","write","nb.model",model$classifier)
Fehler in .jcall("weka/core/SerializationHelper", returnSig = "V",
"write", :
method write with signature
(Ljava/lang/String;Lweka/classifiers/bayes/NaiveBayes;)V not found
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.