Safe Haskell | None |
---|---|
Language | Haskell2010 |
Default / Naive Replay Buffer
Synopsis
- data Buffer a = Buffer {}
- mkBuffer :: Buffer Tensor
- empty :: Buffer Tensor
- size :: Buffer Tensor -> Int
- push :: Int -> Buffer Tensor -> Tensor -> Tensor -> Tensor -> Tensor -> Tensor -> Buffer Tensor
- push' :: Int -> Buffer Tensor -> Buffer Tensor -> Buffer Tensor
- pop :: Int -> Buffer Tensor -> Buffer Tensor
- sample :: Tensor -> Buffer Tensor -> Buffer Tensor
- sampleIO :: Int -> Buffer Tensor -> IO (Buffer Tensor)
- randomBatches :: Int -> Int -> Buffer Tensor -> IO [Buffer Tensor]
- standardizeState :: Float -> Buffer Tensor -> Buffer Tensor
Documentation
Strict Simple/Naive Replay Buffer
push :: Int -> Buffer Tensor -> Tensor -> Tensor -> Tensor -> Tensor -> Tensor -> Buffer Tensor Source #
Push new memories into Buffer
push' :: Int -> Buffer Tensor -> Buffer Tensor -> Buffer Tensor Source #
Push one buffer into another one
sampleIO :: Int -> Buffer Tensor -> IO (Buffer Tensor) Source #
Uniform random sample from Replay Buffer