search for: make_weka_classifier

Displaying 10 results from an estimated 10 matches for "make_weka_classifier".

2008 Oct 16
4
How to save/load RWeka models into/from a file?
Hi, I want to save a RWeka model into a file, in order to retrive it latter with a load function. See this example: library(RWeka) NB <- make_Weka_classifier("weka/classifiers/bayes/NaiveBayes") model<-NB(formula,data=data,...) # does not run but you get the idea save(model,file="model.dat") # simple save R command # ... load("model.dat") # load the model from the previously saved file... model # should work but I get i...
2011 Feb 09
6
clasificador estandar maximum likelihood
Hola a todos, He echado un vistazo a alguno de los paquetes de R que incluyen clasificadores y no sonsigo encontrar ninguno que tenga alguna función para usar un clasificador de maxima probabilidad tradicional. Alquien sabe de alguna? Gracias Víctor. [[alternative HTML version deleted]]
2010 Aug 10
1
Why use numFold in evaluate_Weka_classifier of RWeka
Hi everyone, I have a question about using RWeka package? we know that instruction make_Weka_classifier that can help us to build a model,and evaluate_Weka_classifier instruction can help us to evaluate the performance of the model using on new data. But I have a question about how to using the parameter numFold in evaluate_Weka_classifier.Cross-validation means that using some parts to train...
2012 Feb 24
0
RBFNetwork in RWeka
Dear Forum, I have installed and used various Weka functions in R - both already available interfaces or created ones via make_Weka_classifier - without any trouble. However, the RBFNetwork (RBF Neural Network) function is one that I have not been able to call. I tried creating the R interface using RBF<- make_Weka_classifier("weka/classifiers/functions/RBFNetwork"), and the following is the error I get: Error in .jnew(name...
2012 Nov 08
0
FW: Interfacing R and Weka
...linux-gnu status major 2 minor 15.2 year 2012 month 10 day 26 svn rev 61015 language R version.string R version 2.15.2 (2012-10-26) nickname Trick or Treat I'm trying to use RWeka, in particular an example in the help file for make_Weka_classifier > model <- NB(Class ~ ., data = HouseVotes84) Error in .jnew("weka/core/Attribute", attname[i], .jcast(levels, "java/util/List")) : java.lang.NoSuchMethodError: <init> > traceback() 8: stop(list(message = "java.lang.NoSuchMethodError: <init&...
2007 Nov 01
1
RWeka and naiveBayes
Hi I'm trying to use RWeka to use a NaiveBayes Classifier(the Weka version). However it crashes whenever there is a NA in the class Gender Here is the.code I have with d2 as the data frame. The first call to NB doesn't make R crash but the second call does. NB <- make_Weka_classifier("weka/classifiers/bayes/NaiveBayesSimple") d2[,64]<-d2$Gender=="M" NB(Gender~age,d2,na.action=na.exclude) #1st call d2$Gender[d2$Gender==""]<-NA valid.set<-(!is.na(d2$Gender)&(!is.na(d2$age))) NB(formula=Gender~age,data=d2[valid.set,],subset=valid.se...
2012 Nov 12
0
Weka on command line c.f. using RWeka
...512 603 | a = NoSpray 653 917 | b = Spray So far, no surprises except that maybe I might have expected a few more misclassifications in the cross-validation. However, If I use the same data in R > train.df <- read.arff("HWlrTrain.arff") using RWeka, like this: NB <- make_Weka_classifier("weka/classifiers/bayes/NaiveBayes") wNB <- NB(decision ~ ., data = train.df, + control = Weka_control(K = TRUE)) > summary(wNB) === Summary === Correctly Classified Instances 4437 78.0475 % Incorrectly Classified Instances 1248 21...
2012 Feb 09
1
Tr: Re: how to pass weka classifier options with a meta classifier in RWeka?
...SubsetEval, BestFirst and NaiveBayes that I have initially done with > Weka. Now, I am trying to use RWeka in R. > > I have a problem of passing arguments to the CfsSubsetEval, BestFirst > and NaiveBayes. I have first created an interface for the classifier > with: > > AS<-make_Weka_classifier("weka/classifiers/meta/AttributeSelectedClassifier") > > And then I am trying to run the classifier with: > > nb.model<-AS(class~.,data=ex, > ? ? ? ? ?control=Weka_control( > ? ? ? ? ? ?E="weka.attributeSelection.CfsSubsetEval", > ? ? ? ? ? ?S="wek...
2007 Jul 11
2
RWeka control parameters classifiers interface
...------------ Examples file =system.file("arff","iris.arff",package="RWeka") data =read.arff(file=file) rownames(data)=1:nrow(data) colnames(data)[ncol(data)] ="class" library(RWeka) # Example: no parameter influence mySMO =make_Weka_classifier(name="weka/classifiers/functions/SMO",class=NULL,handlers=list()); # Using control =Weka_control() m1 =mySMO(formula=class~.,data=data[,],control=Weka_control(K="weka.classifiers.functions.supportVector.PolyKernel",E=2)) m2 =mySMO(formula=class~.,data=data[,],control=We...
2009 Jun 01
1
installing sn package
....core.SerializationHelper class in R? 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",mode...