Package de.jungblut.reader
Class CsvDatasetReader
- java.lang.Object
-
- de.jungblut.reader.CsvDatasetReader
-
public final class CsvDatasetReader extends java.lang.ObjectBinary dataset reader from CSVs.- Author:
- thomas.jungblut
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DatasetreadCsv(java.lang.String path, char separator, java.lang.Character quote, int outcomeIndex, boolean skipHeader, boolean cacheOutcomeVectors)Reads a csv into feature and outcome arrays.
-
-
-
Method Detail
-
readCsv
public static Dataset readCsv(java.lang.String path, char separator, java.lang.Character quote, int outcomeIndex, boolean skipHeader, boolean cacheOutcomeVectors)
Reads a csv into feature and outcome arrays.- Parameters:
path- the path to read fromseparator- the separator to usequote- the quote, null if none presentoutcomeIndex- the index of the outcome, everything else is considered a feature.skipHeader- if true it will skip parsing the first line.cacheOutcomeVectors- if true it caches the vectors based on the outcome value. This saves a ton of memory for classification problems that share only a couple of unique values.- Returns:
- a new dataset.
-
-