ML-0.1.0.0: Machine learning code.

Safe HaskellNone
LanguageHaskell2010

ML.MnistLoader

Description

Provides a parser for text formatted MNIST data.

Synopsis

Documentation

parseMnist :: ByteString -> (Vector Sample, Vector Sample, Vector Sample) Source

Parse the given bytestring into (training data, validation data, test data).

Data format:

  • 70000 lines lines of 785 doubles.
  • first 1 - 50000 lines are test data.
  • lines 50001 - 60000 are validation data.
  • lines 60001 - 70000 are test data.
  • first 784 double of each line are the image.
  • last double of each is the expected value.