[R] RWeka weka.core.SerializationHelper.write

Christian ozric at web.de
Wed May 27 19:26:44 CEST 2009


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




More information about the R-help mailing list