Safe Haskell | None |
---|---|
Language | GHC2024 |
MnistData
Description
Parsing and pre-processing of MNIST data.
Documentation
type SizeMnistWidth = 28 Source #
type SizeMnistHeight = SizeMnistWidth Source #
type SizeMnistLabel = 10 Source #
type LengthTestData = 10000 Source #
type MnistDataLinearR r = (Ranked 1 r, Ranked 1 r) Source #
type MnistDataR r = (Ranked 2 r, Ranked 1 r) Source #
type MnistDataBatchR r = (Ranked 3 r, Ranked 2 r) Source #
type MnistDataS r = (Shaped '[SizeMnistHeight, SizeMnistWidth] r, Shaped '[SizeMnistLabel] r) Source #
type MnistDataBatchS (batch_size :: Nat) r = (Shaped '[batch_size, SizeMnistHeight, SizeMnistWidth] r, Shaped '[batch_size, SizeMnistLabel] r) Source #
mkMnistDataLinearR :: PrimElt r => MnistData r -> MnistDataLinearR r Source #
mkMnistDataR :: PrimElt r => MnistData r -> MnistDataR r Source #
mkMnistDataBatchR :: Elt r => [MnistDataR r] -> MnistDataBatchR r Source #
mkMnistDataS :: PrimElt r => MnistData r -> MnistDataS r Source #
mkMnistDataBatchS :: forall (batch_size :: Nat) r. (Elt r, KnownNat batch_size) => [MnistDataS r] -> MnistDataBatchS batch_size r Source #
readMnistData :: (Storable r, Fractional r) => ByteString -> ByteString -> [MnistData r] Source #
loadMnistData :: (Storable r, Fractional r) => FilePath -> FilePath -> IO [MnistData r] Source #