public class CsvImporter
extends java.lang.Object
Constructor and Description |
---|
CsvImporter() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<TrainingSample<double[]>> |
importFromFile(java.lang.String filename)
CSV import routine with default parameters (separator is "," and the label is the last value)
|
static java.util.List<TrainingSample<double[]>> |
importFromFile(java.lang.String filename,
int labelPosition)
CSV import routine with delimiter set to ","
|
static java.util.List<TrainingSample<double[]>> |
importFromFile(java.lang.String filename,
java.lang.String sep)
CSV import routine with label position set to the last value
|
static java.util.List<TrainingSample<double[]>> |
importFromFile(java.lang.String filename,
java.lang.String sep,
int labelPosition)
Importer with full settings.
|
public static java.util.List<TrainingSample<double[]>> importFromFile(java.lang.String filename, java.lang.String sep, int labelPosition) throws java.io.IOException
filename
- the file containing the datasep
- the token which separates the valueslabelPosition
- the position of the class labeljava.io.IOException
public static java.util.List<TrainingSample<double[]>> importFromFile(java.lang.String filename, int labelPosition) throws java.io.IOException
filename
- labelPosition
- java.io.IOException
public static java.util.List<TrainingSample<double[]>> importFromFile(java.lang.String filename, java.lang.String sep) throws java.io.IOException
filename
- sep
- java.io.IOException
public static java.util.List<TrainingSample<double[]>> importFromFile(java.lang.String filename) throws java.io.IOException
filename
- the file containing the valuesjava.io.IOException