Class CacheableExtractableDataSetFetcher
- java.lang.Object
-
- org.deeplearning4j.datasets.fetchers.CacheableExtractableDataSetFetcher
-
- Direct Known Subclasses:
Cifar10Fetcher,SvhnDataFetcher,TinyImageNetFetcher,UciSequenceDataFetcher
public abstract class CacheableExtractableDataSetFetcher extends Object
-
-
Constructor Summary
Constructors Constructor Description CacheableExtractableDataSetFetcher()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringdataSetName(DataSetType set)protected static voiddeleteIfEmpty(File localCache)voiddownloadAndExtract()voiddownloadAndExtract(DataSetType set)Downloads and extracts the local dataset.longexpectedChecksum()longexpectedChecksum(DataSetType set)protected FilegetLocalCacheDir()org.datavec.api.records.reader.RecordReadergetRecordReader(long rngSeed, int[] imgDim, DataSetType set, ImageTransform imageTransform)booleanisCached()Returns a boolean indicating if the dataset is already cached locally.StringlocalCacheName()StringremoteDataUrl()StringremoteDataUrl(DataSetType set)
-
-
-
Method Detail
-
dataSetName
public String dataSetName(DataSetType set)
-
remoteDataUrl
public String remoteDataUrl()
-
expectedChecksum
public long expectedChecksum()
-
downloadAndExtract
public void downloadAndExtract() throws IOException- Throws:
IOException
-
downloadAndExtract
public void downloadAndExtract(DataSetType set) throws IOException
Downloads and extracts the local dataset.- Throws:
IOException
-
getLocalCacheDir
protected File getLocalCacheDir()
-
isCached
public boolean isCached()
Returns a boolean indicating if the dataset is already cached locally.- Returns:
- boolean
-
deleteIfEmpty
protected static void deleteIfEmpty(File localCache)
-
remoteDataUrl
public abstract String remoteDataUrl(DataSetType set)
-
localCacheName
public abstract String localCacheName()
-
expectedChecksum
public abstract long expectedChecksum(DataSetType set)
-
getRecordReader
public abstract org.datavec.api.records.reader.RecordReader getRecordReader(long rngSeed, int[] imgDim, DataSetType set, ImageTransform imageTransform)
-
-