Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type MNIST = Vector Word8
- drawMNIST :: MNIST -> Text
- checkEndian :: Get ()
- readMNISTSamples :: FilePath -> IO [MNIST]
- readMNISTLabels :: FilePath -> IO [Word8]
- readMessageFromFileOrDie :: Message m => FilePath -> IO m
Documentation
checkEndian :: Get () Source #
Check's the file's endianess, throwing an error if it's not as expected.
readMNISTSamples :: FilePath -> IO [MNIST] Source #
Reads an MNIST file and returns a list of samples.
readMNISTLabels :: FilePath -> IO [Word8] Source #
Reads a list of MNIST labels from a file and returns them.
readMessageFromFileOrDie :: Message m => FilePath -> IO m Source #