public interface ZooDataset extends ai.djl.training.dataset.Dataset, PreparedDataset
Dataset whose data is found in the dataset zoo of a Repository.
The ZooDatasets are all PreparedDatasets.
| Modifier and Type | Method and Description |
|---|---|
Artifact |
getArtifact()
Returns the
Artifact the dataset is found in. |
MRL |
getMrl()
Returns the
MRL of the dataset. |
Repository |
getRepository()
Returns the
Repository the dataset is found in. |
ai.djl.training.dataset.Dataset.Usage |
getUsage()
Returns the
Dataset.Usage of the dataset. |
boolean |
isPrepared()
Returns whether the dataset has been prepared.
|
default void |
prepare(ai.djl.util.Progress progress)
Prepares the dataset for use with tracked progress.
|
void |
prepareData(ai.djl.training.dataset.Dataset.Usage usage)
Prepares the
ZooDataset with the dataset specific behavior. |
void |
setPrepared(boolean prepared)
Sets if the dataset has been prepared.
|
void |
useDefaultArtifact()
Sets the artifact to the default one.
|
prepareRepository getRepository()
Repository the dataset is found in.Repository the dataset is found inArtifact getArtifact()
Artifact the dataset is found in.Artifact the dataset is found inai.djl.training.dataset.Dataset.Usage getUsage()
Dataset.Usage of the dataset.Dataset.Usage of the datasetboolean isPrepared()
void setPrepared(boolean prepared)
prepared - true if the dataset has been preparedvoid useDefaultArtifact()
throws java.io.IOException
The default artifact is usually found by searching within the repository with a default mrl, version, and filter.
java.io.IOException - for various exceptions depending on the specific datasetvoid prepareData(ai.djl.training.dataset.Dataset.Usage usage)
throws java.io.IOException
ZooDataset with the dataset specific behavior.
This method is called only when the dataset is not prepared, has an artifact set, and the
repository artifact has already been prepared. setPrepared(boolean) does
not need to be called within this method and will be called after.
usage - the usage to preparejava.io.IOException - for various exceptions depending on the specific datasetdefault void prepare(ai.djl.util.Progress progress)
throws java.io.IOException
prepare in interface PreparedDatasetprogress - the progress trackerjava.io.IOException - for various exceptions depending on the dataset