similar to: Fwd: FSelector and RWeka problem

Displaying 20 results from an estimated 800 matches similar to: "Fwd: FSelector and RWeka problem"

2009 Jun 04
1
About classifier in RWeka
Hi everyone, I have trouble to use RWeka, I tried: (w=weather dataset, all preditors are nominal) > m<-J48(play~., data=w) > e<-evaluate_Weka_classifier(m,cost = matrix(c(0,2,1,0), + ncol = 2),numFolds = 10, complexity = TRUE,seed = 123, + class = TRUE) it gives me exactly what I want, but when I tried the same classifier on the other published data: (iris dataset has all numeric
2010 Oct 19
0
RWeka - Error in model.frame.default - evaluate_Weka_classifier
Hi, First of all, I'm a complete rookie to R (~2 weeks). But anyway, I'm trying to use the RWeka interface for C4.5 (J48) classification. As a proof of concept I'm using the Iris data set to create a training set of 30 instances (10 per species) and use the remaining 120 instances as my test set. This is what I do: trainingIndices <- rep(1:10, 3) + rep(0:2, each=10) * 50
2007 Nov 27
1
Questions on RWeka classifiers?
Hi, I am using some classifiers in RWeka packages and met a couple problems. (1) J48 implements C45 classifier, the C45 should be able to handle missing values in both training set and test set. But I found the J48 classifier can not be evaluated on test set with missing values--it just ignore them. (2) The ensemble classifiers in RWeka such as bagging and boosting: there is a
2011 Nov 13
1
libary(Rweka) J48 design tree
Hello everybody I'm having some difficulties to design the decision tree algorithm J48. I am using the following code and when I run it gives me the following message plot(m1) Error in plot.Weka_tree(m1) : Plotting of trees with multi-way splits is currently not implemented. #The code library(RWeka) library(randomForest) library(party) if(require(mlbench, quietly = TRUE) &&
2010 Aug 04
0
RWeka problem: java.lang.NoSuchMethodError
Hi, I'm trying to use RWeka and followed the following example from the RWeka manual. ============ ## Use some example data. w <- read.arff(system.file("arff","weather.nominal.arff", package = "RWeka")) ## Identify a decision tree. m <- J48(play~., data = w) m ## Use 10 fold cross-validation. e <- evaluate_Weka_classifier(m, cost = matrix(c(0,2,1,0),
2009 Jun 17
1
RWeka evaluate classifier on test set
Hi everyone, I have a test set with more than 1000 cases, when I use evaluate_Weka_classifier(RWeka)to evaluate my classifier on this test set, the output shows me the result of only 83 cases. I do have missing values in predictors, so I tried na.acton=na.pass, but it dosen't help. Now I confused, why RWeka ignore so many cases in my test set? Is there any setting I didn't notice in
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
2009 Apr 26
2
RWeka prediction
Dear All,I encountered a problem when I use RWeka for prediction. Specifically, I use the following: res=J48(X1~.,data=mydata); predict(res), #it worked fine but when I tried to use a different data set, i.e. predict(res,newdata=mynewdata); all the predictions I get is 0, which apparently is problematic. What is weird is, if I use the old data, but use the newdata option, i.e.
2008 Jun 17
1
Decision Trees RWeka
Hello, I have a question concerning decision trees coming from RWeka : library(RWeka) m =J48(Species~.,data=iris) How could such a decision tree be transferred into a matrix, pretty much in the same fashion, as it is done by getTree() in library(ofw) library(ofw) data(srbct) attach(srbct) ##ofwCART learn.cart.keep <- ofw(srbct,
2008 Sep 26
1
RWeka on R-2.7.2___Can't evaluate classifier on test set
Hi, Everyone, I just installed R-2.7.2 on my computer and then installed package RWeka, version 0.3-13. I noticed that when using command "evaluate_Weka_Classifier", with parameter "newdata=", it still evaluated on training data. Does anyone else noticed this? My older version of R-2.6.1 with RWeka 0.3-9 worked fine on the same computer. Bin
2007 Nov 28
0
Questions on RWeka classifiers
Hi, I am using some classifiers in RWeka packages and met a couple problems. (1) J48 implements C45 classifier, the C45 should be able to handle missing values in both training set and test set. But I found the J48 classifier can not be evaluated on test set with missing values--it just ignore them. (2) The ensemble classifiers in RWeka such as bagging and boosting: there is a
2009 Dec 02
0
RWeka problem with WrapperSubsetEval
Dear all, I am trying to construct a wrapper that uses random forest to evaluate the subsets using RWeka and when I do: nombi <- make_Weka_filter("weka/attributeSelection/WrapperSubsetEval") datbin<- nombi(gene ~., data=X1X2X3X4W, control =Weka_control( B = list("weka.classifiers.trees.RandomForest"))) I also have tried with an other induction algorithm:
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
2015 Jun 02
2
information.gain de la libreria FSelector
Hola, estoy intentando calcular la ganancia de información para una serie de variables (series temporales con distinta longuitud, ej: Presion Arterial, Frecuencia cardíaca,...) en relación con una variable binaria (0:paciente no muere; 1:paciente muere). Para ello voy a usar la función information.gain de la libreria FSelector. Sabeis si es posible calcular la ganancia de información para
2008 Nov 12
1
what does negative indexing in a matrix mean?
Hi, Does anyone know what the negative indexing of a matrix mean? I am using the RWeka and this evaluate classifier does not work on new data like this e <- evaluate_Weka_classifier(m1235,newdata=XW4, complexity = FALSE,class = FALSE) while it work with negative indexing: e <- evaluate_Weka_classifier(m1235,newdata=XW4[,-2], complexity = FALSE,class = FALSE) Although I
2008 Nov 12
1
what does negative indexing in a matrix mean?
Hi, Does anyone know what the negative indexing of a matrix mean? I am using the RWeka and this evaluate classifier does not work on new data like this e <- evaluate_Weka_classifier(m1235,newdata=XW4, complexity = FALSE,class = FALSE) while it work with negative indexing: e <- evaluate_Weka_classifier(m1235,newdata=XW4[,-2], complexity = FALSE,class = FALSE) Although I
2011 Feb 21
1
J48 / Transform from numeric to nominal
Hi everyone, I am new to field of data mining as well as particularly using R respectively RWeka for writing my master thesis. I intend to create some specific J48 classification trees with the RWeka_classifiers_tree function. When I run the source code it says ?cannot handle numeric class?. I therefore checked the arff-file and indeed there it says that the class variable is numeric although it
2010 Apr 07
1
RWeka - Error when attempting to summary() model
I'm a big fan of both Weka and R (quite new at R :) ), and jumped at the chance to use them together. Unfortunately, I'm running into what is probably a dumb error when trying to view info about my model. A Google search turned up 0 hits for the actual error I got (last line), but you all are smarter! My code is below, but basically my data frame (q) is imported via RODBC and has 1586
2015 Jun 02
2
information.gain de la libreria FSelector
Hola Javier, yo soy licenciada en Físicas pero también tengo algo de información médica (doctorado en Neurociencia) Un saludo El 2 de junio de 2015, 15:35, <javier.ruben.marcuzzi en gmail.com> escribió: > Estimada María Luz Morales > > ¿Qué título universitario tiene usted?, es para pensar en como poder > ayudarla, si desde la parte médica o la de R > > Javier Rubén
2011 Sep 02
2
Classifying large text corpora using R
Dear everyone, I am new to R, and I am looking at doing text classification on a huge collection of documents (>500,000) which are distributed among 300 classes (so basically, this is my training data). Would someone please be kind enough to let me know about the R packages to use and their scalability (time and space)? I am very new to R and do not know of the right packages to use. I