similar to: Two issues: WEKA code in R // Probability Estimation Tree algorithms

Displaying 20 results from an estimated 4000 matches similar to: "Two issues: WEKA code in R // Probability Estimation Tree algorithms"

2008 Jul 02
1
Usage of rJava (.jcall) with Weka functions, any example?
Dear All, I'd like to use Weka functions that are not implemented (do not have interface) in RWeka, like the Remove function and others in the future! The .java() functionality is for that purpose but I haven't seen any example with Weka functions. Could anyone give me hand in how to do it? For instace if I want to use the weka.filters.unsupervised.attribute.Remove? 1. in the R console,
2012 Feb 09
1
Tr: Re: how to pass weka classifier options with a meta classifier in RWeka?
Le jeudi 09 f?vrier 2012 ? 15:31 +0200, Kari Ruohonen a ?crit : > Hi, > I am trying to replicate a training of AttributeSelectedClassifier with > CFsSubsetEval, 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
2012 Nov 12
0
Weka on command line c.f. using RWeka
Running Weka's command line with calls to system(), like this > system("java weka.classifiers.bayes.NaiveBayes -K -t HWlrTrain.arff -o") === Confusion Matrix === a b <-- classified as 3518 597 | a = NoSpray 644 926 | b = Spray === Stratified cross-validation === === Confusion Matrix === a b <-- classified as 3512 603 | a = NoSpray
2012 Nov 08
0
FW: Interfacing R and Weka
-----Original Message----- From: Patrick Connolly Sent: Friday, 9 November 2012 11:29 a.m. To: Peter Alspach Subject: Interfacing R and Weka > version _ platform x86_64-unknown-linux-gnu arch x86_64 os linux-gnu system x86_64, linux-gnu status major 2 minor 15.2 year 2012 month 10 day 26 svn rev
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
2006 Mar 03
1
Java related (?) problems with RWeka
Hello all, I am attempting to run an R script that makes use of RWeka. I am running SuSE Linux 9.3 with Java 1.5.0_06, R version 2.2.1, Weka 3-4-7, and Rweka 0.2-1. CLASSPATH="/usr/local/weka-3-4-7/weka.jar:/usr/local/JGR/JGR.jar" I receive the error: NewObject("weka/core/Instances","(Ljava/io/Reader;)V",...) failed Exception in thread "main"
2007 Jul 11
2
RWeka control parameters classifiers interface
Hello, I have some trouble in achieving the desired parametrisation for the weka classifier functions, using the package RWeka. The problem is, that the functions result=classifier(formula, data, subset, na.action, control = Weka_control(mycontrol)) do not seem to be manipulated by the mycontrol- arguments Perhaps this should be resepected via the handlers- argument , but the
2009 Jan 07
1
Question about the RWEKA package
Dear List, I´m trying to implement the functionalities from WEKA into my modeling project in R through the RWeka package. In this context I have a slightly special question about the filters implemented in WEKA. I want to convert nominal attributes with k values into k binary attributes through the NominalToBinary filter ("weka.filters.supervised.attribute.NominalToBinary"). But
2006 Nov 22
0
Problem with RWeka-rJava packages
Hello: I´m trying to execute Apriori(file.arff) command of RWeka package. I´m working with: Operating System: Windows XP home R-2.4.0 RWeka_0.2-11 rJava_0.4-11 classpath= .;C:\Archivos de programa\Java\jdk1.5.0\lib;C:\Archivos de programa\R\R- 2.4.0\library\RWeka\jar An error occurs when .jnew command is executed, on class "weka/core/Instances" :
2007 Aug 11
1
R Weka and cobweb
Hi, I never use cobweb before and I'm quite new to this. I have a couple of questions around the cobweb implementation in R Weka. If you could supply answer or insight, I would really appreciate. 1. From Fisher's paper in 1987, it seems that Cobweb only deals with nominal data. In R Weka cobweb, is it allowed to accommodate real/continuous value? 2. My understanding is that Cobweb
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
2008 Dec 09
4
Pre-model Variable Reduction
Hello All, I am trying to carry out variable reduction. I do not have information about the dependent variable, and have only the X variables as it were. In selecting variables I wish to keep, I have considered the following criteria. 1) Percentage of missing value in each column/variable 2) Variance of each variable, with a cut-off value. I recently came across Weka and found that there is an
2006 Mar 05
2
RWeka
Hi, I downloaded RWeka successfully. (At least I do not see, where I could have made a mistake.) Then I tried to load it by the library-command. To my surprise this did not work. Result: library(RWeka) Fehler in .jinit(c(system.file("jar", "weka.jar", package = "RWeka"), system.file("jar", : Cannot create Java Virtual Machine Fehler: .onLoad in
2007 Aug 01
1
RWeka cross-validation and Weka_control Parametrization
Hello, I have two questions concerning the RWeka package: 1.) First question: How can one perform a cross validation, -say 10fold- for a given data set and given model ? 2.) Second question What is the correct syntax for the parametrization of e.g. Kernel classifiers interface m1 <- SMO(Species ~ ., data = iris, control =
2009 Apr 23
2
RWeka: How to access AttributeEvaluators
Hi, I'm trying to use Information Gain for feature selection. There is a InfoGain implementation in Weka: *weka.attributeSelection.InfoGainAttributeEval* Is it possible to use this function with RWeka? If yes how? list_Weka_interfaces doesn't show it and there is no make function for AttributeEvaluators. Is there any other implementation of InformationGain in R? Thank you Michael
2009 Jan 10
1
Help needed for Loading "tm" package
Howdy Gurus again Thanks to Tony.Breyal, I was able to writing the following script for analyzing a text document. But I got an error with "tm' package. I don't why I got the error from the R script below. I think I followed proccess of R tm manual. I use R v2.8.1. and tm_0.3-3.zip under Win XP. Thanks in advance, Kum Hwang > # setting directory > my.path
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,
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:
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"
2007 Aug 19
1
Prerequisite for running RWeka
Hi - I have a question on RWeka. I installed the package and try to run using some examples available in the package. However, it stalls my machine for a while. I'm wondering if I need weka (which is java implementation) installed before using RWeka? Thank you. - adschai