public class FileMultiDataSetIterator extends BaseFileIterator<MultiDataSet,MultiDataSetPreProcessor> implements MultiDataSetIterator
batchSize, list, order, position, preProcessor, rng| Constructor and Description |
|---|
FileMultiDataSetIterator(File... rootDirs)
Create a FileMultiDataSetIterator with the following default settings:
- Recursive: files in subdirectories are included - Randomization: order of examples is randomized with a random RNG seed - Batch size: default (as in the stored DataSets - no splitting/combining) - File extensions: no filtering - all files in directory are assumed to be a DataSet |
FileMultiDataSetIterator(File rootDir)
Create a FileMultiDataSetIterator with the following default settings:
- Recursive: files in subdirectories are included - Randomization: order of examples is randomized with a random RNG seed - Batch size: default (as in the stored DataSets - no splitting/combining) - File extensions: no filtering - all files in directory are assumed to be a DataSet |
FileMultiDataSetIterator(File[] rootDirs,
boolean recursive,
Random rng,
int batchSize,
String... validExtensions)
Create a FileMultiDataSetIterator with all settings specified
|
FileMultiDataSetIterator(File rootDir,
boolean recursive,
Random rng,
int batchSize,
String... validExtensions)
Create a FileMultiDataSetIterator with all settings specified
|
FileMultiDataSetIterator(File rootDir,
int batchSize)
Create a FileMultiDataSetIterator with the specified batch size, and the following default settings:
- Recursive: files in subdirectories are included - Randomization: order of examples is randomized with a random RNG seed - File extensions: no filtering - all files in directory are assumed to be a DataSet |
FileMultiDataSetIterator(File rootDir,
int batchSize,
String... validExtensions)
Create a FileMultiDataSetIterator with the specified batch size, filtering based on file extensions, and the
following default settings:
- Recursive: files in subdirectories are included - Randomization: order of examples is randomized with a random RNG seed |
FileMultiDataSetIterator(File rootDir,
String... validExtensions)
Create a FileMultiDataSetIterator with filtering based on file extensions, and the following default settings:
- Recursive: files in subdirectories are included - Randomization: order of examples is randomized with a random RNG seed - Batch size: default (as in the stored DataSets - no splitting/combining) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyPreprocessor(MultiDataSet toPreProcess) |
protected MultiDataSet |
load(File f) |
MultiDataSet |
merge(List<MultiDataSet> toMerge) |
MultiDataSet |
next(int num) |
protected long |
sizeOf(MultiDataSet of) |
protected List<MultiDataSet> |
split(MultiDataSet toSplit) |
asyncSupported, hasNext, mergeAndStoreRemainder, next, remove, reset, resetSupportedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasyncSupported, getPreProcessor, reset, resetSupported, setPreProcessorforEachRemaining, hasNext, next, removepublic FileMultiDataSetIterator(File rootDir)
rootDir - Root directory containing the DataSet objectspublic FileMultiDataSetIterator(File... rootDirs)
rootDirs - Root directories containing the MultiDataSet objects. MultiDataSets from all of these
directories will be included in the iterator outputpublic FileMultiDataSetIterator(File rootDir, int batchSize)
rootDir - Root directory containing the saved DataSet objectsbatchSize - Batch size. If > 0, DataSets will be split/recombined as required. If <= 0, DataSets will
simply be loaded and returned unmodifiedpublic FileMultiDataSetIterator(File rootDir, String... validExtensions)
rootDir - Root directory containing the saved DataSet objectsvalidExtensions - May be null. If non-null, only files with one of the specified extensions will be usedpublic FileMultiDataSetIterator(File rootDir, int batchSize, String... validExtensions)
rootDir - Root directory containing the saved DataSet objectsbatchSize - Batch size. If > 0, DataSets will be split/recombined as required. If <= 0, DataSets will
simply be loaded and returned unmodifiedvalidExtensions - May be null. If non-null, only files with one of the specified extensions will be usedpublic FileMultiDataSetIterator(File rootDir, boolean recursive, Random rng, int batchSize, String... validExtensions)
rootDir - Root directory containing the saved DataSet objectsrecursive - If true: include files in subdirectoriesrng - May be null. If non-null, use this to randomize orderbatchSize - Batch size. If > 0, DataSets will be split/recombined as required. If <= 0, DataSets will
simply be loaded and returned unmodifiedvalidExtensions - May be null. If non-null, only files with one of the specified extensions will be usedpublic FileMultiDataSetIterator(File[] rootDirs, boolean recursive, Random rng, int batchSize, String... validExtensions)
rootDirs - Root directories containing the MultiDataSet objects. MultiDataSets from all of these
directories will be included in the iterator outputrecursive - If true: include files in subdirectoriesrng - May be null. If non-null, use this to randomize orderbatchSize - Batch size. If > 0, DataSets will be split/recombined as required. If <= 0, DataSets will
simply be loaded and returned unmodifiedvalidExtensions - May be null. If non-null, only files with one of the specified extensions will be usedprotected MultiDataSet load(File f)
load in class BaseFileIterator<MultiDataSet,MultiDataSetPreProcessor>protected long sizeOf(MultiDataSet of)
sizeOf in class BaseFileIterator<MultiDataSet,MultiDataSetPreProcessor>protected List<MultiDataSet> split(MultiDataSet toSplit)
split in class BaseFileIterator<MultiDataSet,MultiDataSetPreProcessor>public MultiDataSet merge(List<MultiDataSet> toMerge)
merge in class BaseFileIterator<MultiDataSet,MultiDataSetPreProcessor>protected void applyPreprocessor(MultiDataSet toPreProcess)
applyPreprocessor in class BaseFileIterator<MultiDataSet,MultiDataSetPreProcessor>public MultiDataSet next(int num)
next in interface MultiDataSetIteratorCopyright © 2021. All rights reserved.