Class MnistDbFile

    • Method Detail

      • getMagicNumber

        protected abstract int getMagicNumber()
        MNIST DB files start with unique integer number.
        Returns:
        integer number that should be found in the beginning of the file.
      • getCurrentIndex

        public long getCurrentIndex()
                             throws IOException
        The current entry index.
        Returns:
        long
        Throws:
        IOException
      • setCurrentIndex

        public void setCurrentIndex​(long curr)
        Set the required current entry index.
        Parameters:
        curr - the entry index
      • getHeaderSize

        public int getHeaderSize()
      • getEntryLength

        public int getEntryLength()
        Number of bytes for each entry. Defaults to 1.
        Returns:
        int
      • getCount

        public int getCount()