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
1 answer

Multi-Band Image raster to RGB

I have an image dataset which is a multiband dataset of arff format. It looks like this: 8.3000000e+001 9.3000000e+001 9.6000000e+001 7.5000000e+001 1.0000000e+000 8.3000000e+001 9.3000000e+001 9.6000000e+001 7.5000000e+001…
Codebeginner
  • 193
  • 4
  • 14
2
votes
2 answers

how do I convert an arff file to libsvm file

I am trying to convert an arff file into a libsvm file in my project,so can anyone help me in doing this, thank you in advance
user3882220
  • 41
  • 1
  • 1
  • 4
2
votes
2 answers

Concept behind arff and how to read weka arff in java?

Why would someone use arff? And please give a sample code to read arff file and make use of it in java. I found the following snippet of code in weka site: BufferedReader reader = new BufferedReader(new…
raghu
  • 131
  • 3
  • 13
2
votes
1 answer

Generate an Arff File for Weka

Hye there I am new to this work and I am getting confused after searching about how to get through it! Actually i want to create a sparse ARFF file for weka for text classification! I have been searching online how to get start with it. My…
Java Nerd
  • 958
  • 3
  • 19
  • 51
2
votes
1 answer

Differing number of features in test and training set

I am trying to build a linear svm classifier to classify unknown test data. However, as text documents do not have a fixed length, how do I ensure that the new documents have the same feature length? Src and Dest differ in # of attributes: 2 !=…
aceminer
  • 4,089
  • 9
  • 56
  • 104
2
votes
1 answer

Unable to load Arff file in weka

I am trying to open an Arff in Weka but getting two errors. First is, file is not recognized as an "Arff data files". Reason: premature end of file read Token[EOL], line 3267. Further if I click on "Use Convertor" with missing value "?", the…
user3458385
  • 21
  • 1
  • 6
2
votes
1 answer

Print ARFF file as two dimensional array

I need to print an ARFF file generated after applying a filter method using Weka to an uploaded file in my Java application. Is there any method in Weka or any way to print the ARFF file as a two dimensional array? I need to print the parameter…
reem.abd
  • 41
  • 10
2
votes
1 answer

jAudio Feature Extractor : Null Exception

My project is to create an Android app that can perform feature extraction and classification of audio files. So first, I'm creating a Java application as a test run. I'm attempting to use jAudio's feature extractor package to extract audio features…
2
votes
1 answer

Telling Weka Which Attributes to Predict in ARFF File?

I'm trying to get Weka to predict from the command line, but I'm concerned I might be doing this wrong. I read the Data Mining book and searched their site for documentation, yet what I found was vague at best, so I hope you can help me. First, I…
R. Barzell
  • 666
  • 5
  • 24
2
votes
1 answer

WEKA: How to save clusterer results to arff?

I want to save the clusterer (Cobweb) results to an arff file, but I can't seem to figure it out. I know how to save the results from GUI, but I cant figure out how to do it from my java code, even after searching for a couple of hours. Here is my…
scarleth ohara
  • 357
  • 2
  • 12
2
votes
0 answers

How do I make Mahout sparse vectors from ratings?

There is an example of creating Mahout Vector objects from text. It says: Before creating the vectors, you need to convert the documents to SequenceFile format. SequenceFile is a hadoop class which allows us to write arbitary key,value pairs into…
dfrankow
  • 20,191
  • 41
  • 152
  • 214
2
votes
1 answer

Unable to determine as arff (Reason: java.io.IOException: premature end of line, read Token [EOL], line 1182

I have some data and I am processing it and converting it in a way that it generates a .arff file as follows : ............ @attribute murdered_to numeric @attribute envy.although_it numeric @attribute vampire_that numeric @attribute list_without…
Gopal Samant
  • 21
  • 1
  • 4
2
votes
0 answers

Classifying instances of a set with a Classification Model on WEKA GUI

I am new to data mining and I would like to ask you a classification question. I have trained a classification algorithm on WEKA (GUI), using a training set in ARFF format. Consequently I saved it in Model format for future use. Now I want to use…
Michael V
  • 51
  • 2
2
votes
1 answer

Weka - Using multiple lines to define nominal values for class attribute

In my ARFF file instead of: @ATTRIBUTE myclass {value1, value2, value3} I would like to write something like: @ATTRIBUTE myclass { value1, value2, value3 } Reason: myclass will eventually contain almost 1000 values and it would be easier to…
user1577278
1
vote
0 answers

WEKA not identifying .ARFF files on M1 Mac

I have downloaded the latest version of WEKA on a newer Mac with the M1 chip and am having trouble opening .ARFF files. When I go to open the file, the file is not appearing as an option to open. It is perhaps a problem with permissions? But when I…