Convert CSV to ARFF using weka

weka

Solution

You can also use the ArffViewer (Tools -> ArffViewer or Ctrl+A). Then open your CSV file.

Next go to File -> Save as... and select Arff data files (should be selected by default).

Note that your fields must be separated with a comma and not a semicolon.

Problem

I've been trying to get this dataset `http://archive.ics.uci.edu/ml/datasets/Communities+and+Crime+Unnormalized` into Weka and no luck at all. I converted it to CSV and then loaded it into Weka and then tried to convert it to ARFF but still giving me the error `"attribute names are not unique"`. Also, do I have to spread the training dataset from testing dataset or keep them together?

Original source