ARFF files (Attribute-Relation File Format) are the most common format for data used in Weka. Each ARFF file must have a header describing what each data instance should be like. The attributes that can be used are as follows:
Numeric
Real or integer numbers.
Nominal
Nominal attributes m...
Depending on the version of Weka being used different methods for loading ARFF files should be utilised.
Weka <3.5.5
The following sample code shows how to load an ARFF file:
import weka.core.Instances;
import java.io.BufferedReader;
import java.io.FileReader;
...
BufferedReader reader = n...