mxnet-nn-0.0.1.3: Train a neural network with MXNet in Haskell.
MXNet.NN.DataIter.LazyVec
data Lazy a Source #
Constructors
Instances
Methods
fmap :: (a -> b) -> Lazy a -> Lazy b #
(<$) :: a -> Lazy b -> Lazy a #
force :: Lazy a -> IO a Source #
data LVec a Source #
Fields
fromListD :: [e] -> LVec e Source #
zipD :: LVec e1 -> LVec e2 -> LVec (e1, e2) Source #
sizeD :: (DatasetConstraint LVec m, Monad m) => LVec e -> m Int Source #
forEachD :: (DatasetConstraint LVec m, Monad m) => LVec e -> (e -> m a) -> m [a] Source #
forEachD_i :: (DatasetConstraint LVec m, Monad m) => LVec e -> ((Int, e) -> m a) -> m [a] Source #
forEachD_ni :: (DatasetConstraint LVec m, Monad m) => LVec e -> (((Int, Int), e) -> m a) -> m [a] Source #
fromVec :: Vector a -> LVec a Source #
toVec :: LVec a -> IO (Vector a) Source #
batch :: Int -> LVec a -> IO (LVec (Vector a)) Source #
zip :: LVec a -> LVec b -> LVec (a, b) Source #
map :: (a -> IO b) -> LVec a -> LVec b Source #