Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ConduitData m a
- class Dataset (d :: * -> *) where
- imageRecordIter :: (MatchKVList kvs ImageRecordIter_Args, ShowKV kvs, DType a, MonadIO m) => HMap kvs -> ConduitData m (NDArray a, NDArray a)
- mnistIter :: (MatchKVList kvs MNISTIter_Args, ShowKV kvs, DType a, MonadIO m) => HMap kvs -> ConduitData m (NDArray a, NDArray a)
- csvIter :: (MatchKVList kvs CSVIter_Args, ShowKV kvs, DType a, MonadIO m) => HMap kvs -> ConduitData m (NDArray a, NDArray a)
- libSVMIter :: (MatchKVList kvs LibSVMIter_Args, ShowKV kvs, DType a, MonadIO m) => HMap kvs -> ConduitData m (NDArray a, NDArray a)
Documentation
data ConduitData m a Source #
Monad m => Dataset (ConduitData m) Source # | |
type DatasetConstraint (ConduitData m1) m2 Source # | |
class Dataset (d :: * -> *) where #
Abstract Dataset type class
Create Dataset from `[]`. note that depending on the instance, it may or may not work with infinitive list.
zipD :: d e1 -> d e2 -> d (e1, e2) #
Zip two Datasets
sizeD :: (DatasetConstraint d m, Monad m) => d e -> m Int #
Get number of elements
forEachD :: (DatasetConstraint d m, Monad m) => d e -> (e -> m a) -> m [a] #
Apply a function on each element of Dataset
forEachD_i :: (DatasetConstraint d m, Monad m) => d e -> ((Int, e) -> m a) -> m [a] #
Apply a function on each element of Dataset together with the element's index. Note that the default implmentation assumes the Dataset can be created from a infinitive list.
forEachD_ni :: (DatasetConstraint d m, Monad m) => d e -> (((Int, Int), e) -> m a) -> m [a] #
Apply a function on each element of Dataset together with the total number of elements and the element's index.
Monad m => Dataset (StreamData m) # | |
Monad m => Dataset (ConduitData m) # | |
imageRecordIter :: (MatchKVList kvs ImageRecordIter_Args, ShowKV kvs, DType a, MonadIO m) => HMap kvs -> ConduitData m (NDArray a, NDArray a) Source #
mnistIter :: (MatchKVList kvs MNISTIter_Args, ShowKV kvs, DType a, MonadIO m) => HMap kvs -> ConduitData m (NDArray a, NDArray a) Source #
csvIter :: (MatchKVList kvs CSVIter_Args, ShowKV kvs, DType a, MonadIO m) => HMap kvs -> ConduitData m (NDArray a, NDArray a) Source #
libSVMIter :: (MatchKVList kvs LibSVMIter_Args, ShowKV kvs, DType a, MonadIO m) => HMap kvs -> ConduitData m (NDArray a, NDArray a) Source #