2

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 read and edit the arff file using the second format.

I've tried using the the above format but I get an error message saying "Unable to determine structure as arff.

1 Answers1

0

As far as I know, this is not possible in Weka. You could keep a separate file where you list all your classes in your preferred format for editing/readability and convert it into Weka's format once you make any changes. For example if you use a Unix-like operation system the you could use the tr command in the terminal:

tr '\n' ' ' < <filename>

You can then copy the output into your ARFF file.

Sicco
  • 6,167
  • 5
  • 45
  • 61