public class CookingStackExchange extends java.lang.Object implements RawDataset<java.nio.file.Path>
| Modifier and Type | Class and Description |
|---|---|
static class |
CookingStackExchange.Builder
A builder to construct a
CookingStackExchange. |
| Modifier and Type | Method and Description |
|---|---|
static CookingStackExchange.Builder |
builder()
Creates a builder to build a
CookingStackExchange. |
java.nio.file.Path |
getData()
Returns a plain java object.
|
java.lang.Iterable<ai.djl.training.dataset.Batch> |
getData(ai.djl.ndarray.NDManager manager) |
void |
prepare(ai.djl.util.Progress progress) |
public java.nio.file.Path getData()
throws java.io.IOException
getData in interface RawDataset<java.nio.file.Path>java.io.IOException - when IO operation fails in loading a resourcepublic java.lang.Iterable<ai.djl.training.dataset.Batch> getData(ai.djl.ndarray.NDManager manager)
getData in interface ai.djl.training.dataset.Datasetpublic void prepare(ai.djl.util.Progress progress)
throws java.io.IOException
prepare in interface ai.djl.training.dataset.Datasetjava.io.IOExceptionpublic static CookingStackExchange.Builder builder()
CookingStackExchange.