Class Cifar10DataSetIterator

    • Field Detail

      • preProcessor

        protected org.nd4j.linalg.dataset.api.DataSetPreProcessor preProcessor
    • Constructor Detail

      • Cifar10DataSetIterator

        public Cifar10DataSetIterator​(int batchSize)
        Create an iterator for the training set, with random iteration order (RNG seed fixed to 123)
        Parameters:
        batchSize - Minibatch size for the iterator
      • Cifar10DataSetIterator

        public Cifar10DataSetIterator​(int batchSize,
                                      DataSetType set)
        * Create an iterator for the training or test set, with random iteration order (RNG seed fixed to 123)
        Parameters:
        batchSize - Minibatch size for the iterator
        set - The dataset (train or test)
      • Cifar10DataSetIterator

        public Cifar10DataSetIterator​(int batchSize,
                                      int[] imgDim,
                                      DataSetType set)
        Get the Tiny ImageNet iterator with specified train/test set, with random iteration order (RNG seed fixed to 123)
        Parameters:
        batchSize - Size of each patch
        imgDim - Dimensions of desired output - for example, {64, 64}
        set - Train, test, or validation
      • Cifar10DataSetIterator

        public Cifar10DataSetIterator​(int batchSize,
                                      int[] imgDim,
                                      DataSetType set,
                                      ImageTransform imageTransform,
                                      long rngSeed)
        Get the Tiny ImageNet iterator with specified train/test set and (optional) custom transform.
        Parameters:
        batchSize - Size of each patch
        imgDim - Dimensions of desired output - for example, {64, 64}
        set - Train, test, or validation
        imageTransform - Additional image transform for output
        rngSeed - random number generator seed to use when shuffling examples
    • Method Detail

      • getLabels

        public static List<String> getLabels​(boolean categories)
        Get the labels - either in "categories" (imagenet synsets format, "n01910747" or similar) or human-readable format, such as "jellyfish"
        Parameters:
        categories - If true: return category/synset format; false: return "human readable" label format
        Returns:
        Labels