Questions tagged [arff]

An ARFF (Attribute-Relation File Format) file is an ASCII text file that describes a list of instances sharing a set of attributes

An ARFF (Attribute-Relation File Format) file is an ASCII text file that describes a list of instances sharing a set of attributes. ARFF files were developed by the Machine Learning Project at the Department of Computer Science of The University of Waikato for use with the Weka machine learning software

288 questions
2
votes
2 answers

WEKA parses my date with SimpleDateFormat....unless it involves 2 o' clock

I have a large ARFF file with data that looks something like this: 555,"2011-03-13 01:50:48.000",0 540,"2011-03-13 02:10:19.000",0 To help parse it, I declared the second attribute like this: @attribute RecordedOn date "yyyy-MM-dd…
tsm
  • 3,598
  • 2
  • 21
  • 35
2
votes
1 answer

Missing values in ARFF (Weka)

How will classifiers (such as decision trees) in Weka interpret '?' (that stands for missing values in ARFF files) during learning stage? Will Weka just replace it with some predefined value (e.g. '0' or 'false') or will it somehow affect the…
om-nom-nom
  • 62,329
  • 13
  • 183
  • 228
2
votes
1 answer

Reading ARFF from ZIP with zipfile and scipy.io.arff

I want to process quite big ARFF files in scikit-learn. The files are in a zip archive and I do not want to unpack the archive to a folder before processing. Hence, I use the zipfile module of Python 3.6: from zipfile import ZipFile from…
2
votes
1 answer

Error while loading an .arff file with scikit-learn

I would like to use an Attribute-Relation File Format(.arff) with scikit-learn for a classification problem. The code runs fine on a Windows 10 machine, however when I try the same code on my other machine with Ubuntu(18.04.1) it throws a confusing…
ozgecl
  • 29
  • 7
2
votes
1 answer

How to read Sparse ARFF data using Python libraries?

The data section is something like this: {60 1,248 1,279 1,316 1}. When I use Python LIAC-ARFF library, I get error like this: ValueError: {60 1 value not in ('0', '1'). When I use normal ARFF file, it works fine. I am using the famous…
2
votes
1 answer

java heap space error in weka.apriori

I am implementing Aprioiri algorithm on my data. The data is having almost 700 records with almost 81 attributes. I want to generate association rules for that data. This is the code for my program: public class Aprioritest { /** * @param args…
2
votes
2 answers

Error in arff module

I am working in Python 2.7.12 in linux. I have installed the liac-arff and arff modules for the machine. The following line throws an error. arff_frame = arff.load( open(filename, 'r'), encode_nominal=encode_nominal,…
Ameet Deshpande
  • 496
  • 8
  • 22
2
votes
3 answers

Run multiple classifiers on arff files in weka automatically

I have to run many arff files in weka, and for each of them I have to run multiple classifiers- MLP, RandomForest,FURIA, etc., with different test options for each, and store each of their results. It is very time consuming to do each of them…
chi
  • 35
  • 8
2
votes
1 answer

How to automatically create sub-folder or immediate files in yaml file with python?

I am writing a python code to do the machine learning problem by reading an arff file. Meanwhile, I want to create a yaml file to record each step of data generation process. The format is like this: Round1: -exe /exes/method -parameters -a 1 -b…
WEI FEI
  • 45
  • 1
  • 5
2
votes
1 answer

How to deal with data from arff file with python?

I am pretty new for python. I am using python to read the arff file now: import arff for row in arff.load('cpu.arff'): x = row print(x) The part of sample output is like this…
WEI FEI
  • 45
  • 1
  • 5
2
votes
1 answer

Weka java spreadsubsample filter

I'm quite familiar with Weka as I've used the GUI. I'm doing some classification experiments that requires the SpreadSubsample filter on both my training and testing data. I'm learning java, and want to use the weka API to do this. I've got to the…
user47467
  • 1,045
  • 2
  • 17
  • 34
2
votes
0 answers

Arrays in ARFF files

Given an array of data from a .json file, i.e.: "data": [1, 2, 3, 4, 5, 6] How would you then insert that data into a an arff file? Would I have to define some NOMINAL type, and if so how would a define the type. @ATTRIBUTE data …
mattbat131
  • 63
  • 1
  • 1
  • 10
2
votes
1 answer

How to read a query from a text file, modify it, and call it

I have a Weka arff file, where the attributes are Prolog queries. I want to read the query from the file, modify it, and then run the query. The weka arff file begins like: @relation propositionalization @attribute 'link(_, A, _), link(A, _, _)'…
user27815
  • 4,767
  • 14
  • 28
2
votes
1 answer

Converting a single txt file to arff file automatically

I have a single .txt file including a lot of Arabic text, and I want to convert this file to an .arff file automatically, so I can use it in Weka to get rules from it. As my Professor requested I need to have 30 attributes, and each attribute…
Bash
  • 21
  • 1
2
votes
2 answers

How to add a vector as values in Java

In line 28 I want to replace values with the ch array. If you run the program, the values for the histogram appear at the beginning of the file. The .arff file prints out correctly but with the values in the @data field. Obviously, ch is an…