public abstract class CacheableExtractableDataSetFetcher extends Object
| Constructor and Description |
|---|
CacheableExtractableDataSetFetcher() |
| Modifier and Type | Method and 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) |
public String dataSetName(DataSetType set)
public String remoteDataUrl()
public long expectedChecksum()
public void downloadAndExtract()
throws IOException
IOExceptionpublic void downloadAndExtract(DataSetType set) throws IOException
IOExceptionprotected File getLocalCacheDir()
public boolean isCached()
protected static void deleteIfEmpty(File localCache)
public String remoteDataUrl(DataSetType set)
public String localCacheName()
public long expectedChecksum(DataSetType set)
public org.datavec.api.records.reader.RecordReader getRecordReader(long rngSeed,
int[] imgDim,
DataSetType set,
ImageTransform imageTransform)
Copyright © 2021. All rights reserved.