tensorflow-mnist-0.1.0.0: TensorFlow demo application for learning MNIST model.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.Examples.MNIST.Parse

Synopsis

Documentation

type MNIST = Vector Word8 Source

Utilities specific to MNIST.

drawMNIST :: MNIST -> Text Source

Produces a unicode rendering of the MNIST digit sample.

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.