public class LazyReader extends StandardReader
| Constructor and Description |
|---|
LazyReader() |
| Modifier and Type | Method and Description |
|---|---|
InstancesContainer |
readData(java.lang.String path,
java.lang.String dataSpliter,
java.lang.String valueSpliter)
a Lazy reader, it reads only the paths to the data and not the data itself
this reader will read the actual data on demand
|
Example |
readExample(java.util.ArrayList<java.lang.String> paths)
read only one example and it's labels
|
readFile, readPathespublic InstancesContainer readData(java.lang.String path, java.lang.String dataSpliter, java.lang.String valueSpliter)
readData in interface ReaderreadData in class StandardReaderpath - the path to the datadataSpliter - the splitter between the data valuesvalueSpliter - the separator between the index of the feature to the feature valuepublic Example readExample(java.util.ArrayList<java.lang.String> paths) throws java.lang.Exception
paths - the paths to the data and to the label filesjava.lang.Exception