search for: j48

Displaying 20 results from an estimated 28 matches for "j48".

Did you mean: 48
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) &&a...
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...
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 only contains 0 and 1. In a next step I tried to Discretize my d...
2010 Sep 26
4
How to update an old unsupported package
Hi all, I have a package that is specific to a task I was repetitively using a few years ago. I now needed to run it again with new data. However I am told it was built with an older version or R and will not work. How can I tweak the package so it will run on 11.1? It was a one-off product and has not been maintained. Is there a way to "unpackage" it and repackage it to work? I
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...
2011 Sep 07
1
Fwd: FSelector and RWeka problem
...lector and RWeka problem Dear Piotr, Thanks for developing the FSelector package for us. I'm a new R beginner, and trying to use R to do some machine learning related research. Here is the problem I found: I was trying to combine RWeka and FSelector, and do the forward feature selection with J48/C5.4 decision tree: Here is the code: #================== library(RWeka) library(FSelector) library(rpart) data(iris) evaluator <- function(subset) { p <- J48(as.simple.formula(subset, "Species"), data=iris) e...
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. predict(res,newdata=myda...
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 preditors) &g...
2008 Dec 29
2
dudas
Quer?a saber si existe alguna funci?n de R para realizar el algoritmo CHAID de ?rbol de clasificaci?n, existen de J48 por ejemplo pero no encuentro nada de este algor?tmo. Muchas gracias y un cordial saludo, Juan -- ========================================================= Juan Antonio Gil Pascual Prof. Titular de M?todos de Investigaci?n en Educaci?n correo: jgil at edu.uned.es web: www.uned.es/personal/jgil...
2010 Jun 16
1
RegExp question
Dear all, I'm trying to filter out the "number of leaves" (it should be 1 in the example below) from the following string: > string [1] "Java-Object{J48 pruned tree\n------------------\n: 0 (15.0/3.0)\n \nNumber of Leaves : \t1\n\nSize of the tree : \t1\n}" Any idea how to do that as simple as possible? Thanks in advance for any advice. Regards, Andrej
2013 Mar 23
1
LOOCV over SVM,KNN
Good afternoon. I would like to know if there is any function in R to do LOOCV with these classifiers: 1)SVM 2)Neural Networks 3)C4.5 ( J48) 4)KNN Thanks a lot! [[alternative HTML version deleted]]
2013 Apr 25
1
C50 package in R
Hi All, I am trying to use the C50 package to build classification trees in R. Unfortunately there is not enought documentation around its use. Can anyone explain to me - how to prune the decision trees? Regards, Indrajit [[alternative HTML version deleted]]
2010 Oct 12
6
Rpart query
Hi, Being a novice this is my first usage of R. I am trying to use rpart for building a decision tree in R. And I have the following dataframe Outlook Temp Humidity Windy Class Sunny 75 70 Yes Play Sunny 80 90 Yes Don't Play Sunny 85 85 No Don't Play Sunny 72 95 No Don't Play Sunny 69 70 No Play Overcast 72 90 Yes Play Overcast 83 78 No Play Overcast 64 65 Yes Play Overcast 81 75
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, as.factor(class),type="CART", n...
2009 Dec 02
0
RWeka problem with WrapperSubsetEval
...Eval") datbin<- nombi(gene ~., data=X1X2X3X4W, control =Weka_control( B = list("weka.classifiers.trees.RandomForest"))) I also have tried with an other induction algorithm: datbin<- nombi(gene ~., data=X1X2X3X4W, control =Weka_control( B=list("weka.classifiers.trees.j48.J48 -F 5 -T 0.01 -S 1 -- -C 0.25 -M 2"))) and in both cases I get the following error: Error in .jcall(filter, "Z", "setInputFormat", instances) : method setInputFormat with signature (Lweka/core/Instances;)Z not found Thanks in advance, Itziar Frades...
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), ncol = 2), numFolds = 10, complexity = TRUE, seed = 123, class = TRUE) e summary(e) e$details ============ But executing "J48(play~., data = w)" generates the following erro...
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 testIndices <- c(1:150)[-(trainin...
2011 Nov 18
2
Export Tree for latex
Hello everybody. I'm trying to send the result of a decision tree for latex, but I do not get with the package(xtable), there is a package that make this export Export this for latex marital.status = Divorced | educational.num <= 12: <=50K (1795.0/90.0) | educational.num > 12 | | hours.per.week <= 41: <=50K (302.0/58.0) | | hours.per.week > 41 | | |
2013 Mar 13
1
Accuracy of some classifiers
I am using machine learning for one researching. I am using some classifiers with 5-fold CV . I would like to know how it is possible to extract the accuracy, for example, for KNN,neural networks and J48, for each one of 5-fold because when I apply CV to my classifier, I obtain the "mean accuracy" of 5-fold but each accuracy/error of each fold is not returned. Any help is welcome and grateful. Thanks in advance! Regards!! [[alternative HTML version deleted]]
2014 Sep 03
2
[LLVMdev] Testing the new CFL alias analysis
...MultiSource/Benchmarks/FreeBench/neural/neural: 158.679% +/- 22.3212% MultiSource/Benchmarks/MiBench/consumer-typeset/consumer-typeset: 0.627176% +/- 0.290698% MultiSource/Benchmarks/Ptrdist/ks/ks: 57.5457% +/- 21.8869% I ran the test suite 20 times in each configuration, using make -j48 each time, so I'll only pick up large changes. I've not yet investigated the cause of the slowdowns (or the speedup), and I really need people to try this on x86, ARM, etc. I appears, however, the better aliasing analysis results might have some negative unintended consequences, and we'...