search for: arff

Displaying 20 results from an estimated 22 matches for "arff".

Did you mean: aiff
2015 Oct 22
0
alternative read.arff function for the package foreign
?Hello everyone, I guess this is really directed to the R Core Team, but I understand that this is the best channel to submit this (please correct me if I'm wrong!). I would like to submit a function to consideration, as an upgrade for the current read.arff in package foreign. Code in github: https://raw.githubusercontent.com/jumanbar/misc/master/R/read.arff.R This function is a modified version of the one found in the foreign package. This changes aim to correct a problem I found with the standard read.arff: levels in factors do not match what'...
2011 May 01
1
FileNotFoundException en RWeka
Saludos colegas. Estoy intentando cargar un archivo arff con el paquete RWeka pero me lanza el error FileNotFoundException cuando intento ejecutar la instrucción en R. Este es el código: datos<- read.arff(system.file("arff","cereals.arff", package = "RWeka")) El archivo cereals.arff y el script con el código R están e...
2011 Nov 20
0
write.arff function in package foreign can't handle Date time
Hi, x1 <- c(as.Date("20110101","%Y%m%d"),as.Date("2012-01-01","%Y-%m-%d")); x2 <- c("1","2"); ddf <- data.frame(x=x1,y=x2); ddf[["y"]] <- as.factor(ddf[["y"]]) write.arff(ddf, file="D:/ddf.arff") Content of ddf.arff is @relation ddf @attribute x numeric @attribute y {'1','2'} @data 2011-01-01,'1' 2012-01-01,'2' Here x is of type Date, but write.arff write it as numeric, but the actual content is string, the result file...
2011 Dec 31
1
Reading large sparse arff files into R
Hi, I am trying to read in a large and highly sparse ARFF file into R which was produced by WEKA. However the package 'RWeka' just chokes on this file. The data set has about 40k observations and about 20k dimensions. Even after 1hr read.arff method of RWeka is still trying to read in the file, whereas WEKA is able to read it in in less than 20sec...
2008 Aug 20
1
Improvements to write.arff (PR#12574)
Full_Name: Martin C. Martin Version: 2.7.1 OS: Ubuntu Submission from: (NULL) (75.150.115.86) The function write.arff, in the foreign library: - Can produce relation names with invalid characters - Doesn't use colnames() for attribute names when writing a matrix. Here's a better version: write.arff <- function (x, file, eol = "\n") { if (file == "") file <- stdout...
2009 Jun 05
0
RWeka write.arff: set @relation
Dear all, I am using the RWeka package to append several arff files. Although it works the resulting arff files always have "@relation R_data_frame", and I have to change this manually to my desired relation name. Can the package accomplish this for me instead? Thank you, Wil Koetsier
2010 Jul 30
0
help for creating arff file..i have the codes??
I need to create an arff file.i have the necesaary codes as two parts and i need to combine them..if there is anyone who can help i'll send the codes..thank you. -- View this message in context: http://r.789695.n4.nabble.com/help-for-creating-arff-file-i-have-the-codes-tp2308039p2308039.html Sent from the R help maili...
2008 Apr 21
1
R-2.7.0 RC (2008-04-20 r45403) fails fullcheck
...ges and I got the following: ... -------- Testing package foreign -------- Running examples in 'foreign-Ex.R' ... Comparing `foreign-Ex.Rout' to `foreign-Ex.Rout.prev' ...OK Running specific tests Running `S3.R' Comparing `S3.Rout' to `S3.Rout.save' ...OK Running `arff.R' Comparing `arff.Rout' to `arff.Rout.save' ...OK Running `minitab.R' Comparing `minitab.Rout' to `minitab.Rout.save' ...OK Running `octave.R' Comparing `octave.Rout' to `octave.Rout.save' ...OK Running `sas.R' make[2]: *** [sas.Rout] Error 1 mak...
2005 Jul 20
0
writing matrices (no subject)
Simply gooling for "writing ARFF file in R" gave the following as first hit, which is right on the WEKA page: Miscellaneous code [...] Function for reading ARFF files into the R statistical package (kindly provided by Dr Craig Struble). Function for writing ARFF files from the R statistical package (kindly provided by Nigel...
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...
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 653 917 | b = Spray So far, no surprises...
2012 Mar 08
2
Regarding randomForest regression
Sir, This query is related to randomForest regression using R. I have a dataset called qsar.arff which I use as my training set and then I run the following function - rf=randomForest(x=train,y=trainy,xtest=train,ytest=trainy,ntree=500) where train is a matrix of predictors without the column to be predicted(the target column), trainy is the target column.I feed the same data for xt...
2007 Jul 11
2
RWeka control parameters classifiers interface
...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 documentation in this regard is rather sparse. # ------------- 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/functio...
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
2011 Aug 03
0
Rattle loading String to Vector file from WEKA
Hi all, I have been using WEKA to do some text classification work and I want to try out R. The problem is I cannot load the String to Vector ARFF files created by WEKA's string parser into Rattle . Looking at the logs I get something like: /Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : scan() expected 'a real', got '2281}'/ *My ARFF data file looks a bit like this:* /@relation '...
2013 Mar 23
1
RWeka and Back Propagation NN
Hello, I have a trained Back Propagation Neural Network model in weka. I would like to re-evaluate the NN using R with a given input. How can I do this? I could not find an example of RWeca that applies to NN Thanks, Rui
2011 Feb 21
1
J48 / Transform from numeric to nominal
...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 dataset but received the same error message. I googled the issue several times and also read about the filter function in WEKA but did not know how to use it a...
2009 Jan 22
4
dimnames in pkg "ipred"
Hello List, I`m trying to make prediction using a bagged tree with the package ipred. I tried to follow the manual but I`m getting an error message. Also browsing through the list-archive I didn`t find any hint. Maybe someone can help me? selbag <- bagging(SOIL_UNIT ~., data=traindat.bin, coob=TRUE) Error in dimnames(X) <- list(dn[[1L]], unlist(collabs, use.names = FALSE)) :
2009 Jan 04
0
Rattle 2.4.0 (Data Mining GUI using R)
...re provided at: http://datamining.togaware.com/survivor/Installing_Rattle.html Recent updates include: * Many bug fixes, GUI simplifications, improved colour usage (through the vcd package). * Streamlined handling of datasets (combined the Data and Select tabs), including support for CSV, ARFF, and ODBC data sources. * Addition of Test and Transforms tabs, with scripting support for transforms, both in building a model and in scoring. * Experimental support for automatic report generation using odfWeave (and hence, generation of OpenOffice documents). * Supported modelling include...
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/Inst...