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 String
dataSetName(DataSetType set)
protected static void
deleteIfEmpty(File localCache)
void
downloadAndExtract()
void
downloadAndExtract(DataSetType set)
Downloads and extracts the local dataset.long
expectedChecksum()
long
expectedChecksum(DataSetType set)
protected File
getLocalCacheDir()
org.datavec.api.records.reader.RecordReader
getRecordReader(long rngSeed, int[] imgDim, DataSetType set, ImageTransform imageTransform)
boolean
isCached()
Returns a boolean indicating if the dataset is already cached locally.String
localCacheName()
String
remoteDataUrl()
String
remoteDataUrl(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)
-
-