public class ArffImporter
extends java.lang.Object
Constructor and Description |
---|
ArffImporter() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<TrainingSample<double[]>> |
importFromFile(java.lang.String filename)
Read training samples from an Arff file.
|
static void |
main(java.lang.String[] args) |
public static java.util.List<TrainingSample<double[]>> importFromFile(java.lang.String filename) throws java.io.IOException
Read training samples from an Arff file.
Currently, String, Date and relational data are not supported and simply ignored. Nominal data are converted to a n-dimensional real space where n is the length of the dictionary. The component corresponding to the nominal value is then set to 1, and the others to 0. The class attribute has to be called "Class", case insensitive.
filename
- java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception