Class MnistLabelFile

    • Method Detail

      • readLabel

        public int readLabel()
                      throws IOException
        Reads the integer at the current position.
        Returns:
        integer representing the label
        Throws:
        IOException
      • readLabels

        public int[] readLabels​(int num)
                         throws IOException
        Read the specified number of labels from the current position
        Throws:
        IOException
      • getMagicNumber

        protected int getMagicNumber()
        Description copied from class: MnistDbFile
        MNIST DB files start with unique integer number.
        Specified by:
        getMagicNumber in class MnistDbFile
        Returns:
        integer number that should be found in the beginning of the file.