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
3
votes
2 answers

Converting .arff file to .csv using Python

I have a file "LMD.rh.arff" which I am trying to convert to .csv file using the following code- import pandas as pd import matplotlib.pyplot as plt from scipy.io import arff # Read in .arff file- data = arff.loadarff("LMD.rh.arff") But this last…
Arun
  • 2,222
  • 7
  • 43
  • 78
3
votes
1 answer

classifying data from an ARFF in weka

I have an ARFF that i've loaded into the weka explorer. I'm quite new to weka but to my understanding the arff i have should be working however none of the classifiers appear to work with it? @RELATION wordfrequency @ATTRIBUTE word…
Alex
  • 1,853
  • 5
  • 16
  • 15
3
votes
1 answer

Letter appeared in data when arff loaded into Python

I have loaded an arff file to python using this code: import pandas as pd, scipy as sp from scipy.io import arff datos,meta = arff.loadarff(open('selectividad.arff', 'r')) d = pd.DataFrame(datos) When I use head function to see the data frame, this…
Javier Lopez Tomas
  • 2,072
  • 3
  • 19
  • 41
3
votes
2 answers

How to write in ARFF file using LIAC-ARFF package in Python?

I want to load an ARFF file in python, then change some values of it and then save changes to file. I'm using LIAC-ARFF package (https://pypi.python.org/pypi/liac-arff). I loaded ARFF file with following lines of code: import arff data =…
SuB
  • 2,250
  • 3
  • 22
  • 37
3
votes
2 answers

Weka - combining arff files that have different headers

I want to merge 2 arff files. They have same attributes, but the values under the attributes changes. For example: 1.arff: weather(sunny, rainy). 50 instances 2.arff: weather(warm, cold, freezing). 30 instances I want to create a new arff: 3.arff:…
user3692479
3
votes
2 answers

.names and .data in Weka

I am new to Weka. I am trying to run some algorithms in Weka using UCI ML repository but I don't know how to use the .names and .data files in Weka. Can anyone tell me how to convert .data and .name to arff format?
ihmpall
  • 1,358
  • 2
  • 13
  • 17
3
votes
1 answer

Weka ignoring unlabeled data

I am working on an NLP classification project using Naive Bayes classifier in Weka. I intend to use semi-supervised machine learning, hence working with unlabeled data. When I test the model obtained from my labeled training data on an independent…
user2154731
  • 203
  • 1
  • 4
  • 9
3
votes
0 answers

Classifying unlabelled data in Weka

I'm currently using various classifiers in Weka. My testing data is labelled, e.g.: @relation bmwreponses @attribute IncomeBracket {0,1,2,3,4,5,6,7} @attribute FirstPurchase numeric @attribute LastPurchase numeric @attribute responded…
Mr Morgan
  • 2,215
  • 15
  • 48
  • 78
3
votes
5 answers

Arff File - Nominal Value not declared in header.

I am generating an .arff file using a Java program. The file has about 600 attributes. I am unable to open the file in Weka Explorer. It says: "nominal value not declared in header, read Token[0], line 626." Here is the first attribute line:…
srrvnn
  • 609
  • 1
  • 11
  • 20
3
votes
1 answer

REPtree algorithm output

Can anyone tell me how to interpret the output of REPtree algorithm under some kind of dataset. Here is part if the output: won < 36.5 | team = BOS | | year < 1961.5 : 36.6 (4/41.19) [1/3.06] | | year >= 1961.5 | | | pace < 96.31 :…
Katerina
  • 364
  • 6
  • 22
3
votes
1 answer

WEKA - Vector Attribute in arff format

I am new to Weka and I am trying to build a classifier to classify EEG data. The EEG attribute data is 5 minutes of recorded raw signals as well as other attributes. How can I specify in WEKA arff file format that my instance has a vector input of a…
Mariam H
  • 171
  • 1
  • 3
  • 11
2
votes
3 answers

Reading arff file in R

I want to read a dataset, from UCI with Amazon reviews, using R. The dataset comes in the format ARFF (.arff). I am using the following script: require("foreign") setwd("H:/DataSet/amazon") reviews <- read.arff("amazon.arff") And I am getting the…
realnumber
  • 2,124
  • 5
  • 25
  • 33
2
votes
1 answer

Too many attributes for ARFF format in Weka

I am working with a data-set of dimension more than 10,000. To use Weka I need to convert text file into ARFF format, but since there are too many attributes even after using sparse ARFF format file size is too large. Is there any similar method as…
Deepak
  • 173
  • 3
  • 8
2
votes
1 answer

Histogram Based Image Classification with Weka

I am doing a project on histogram based image retrieval, and I need to compare learning algorithms for a set of images. So, in MATLAB, I converted an image (256x256 pixels) into HSV, quantized it to 8(H),3(S),3(V) and created a weighted sum, which…
vahissan
  • 2,322
  • 16
  • 26
2
votes
1 answer

RWeka read.arff issues

I am reading a (sparse) arff using read.arff method of RWeka package. However I get the following error: Error in .jnew("java/io/FileReader", file) : java.io.FileNotFoundException: (No such file or directory) The file I am trying to read in…
Andy
  • 328
  • 3
  • 13
1 2
3
19 20