| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
RL.ReplayBuffer
Documentation
newtype RPState tr tr' slc s f h Source #
Constructors
| RPState (GreedyState tr tr' slc (Leftmost s f h)) |
data ReplayStep (dev :: (DeviceType, Nat)) tr tr' slc s f h Source #
Constructors
| ReplayStep | |
Fields
| |
Instances
| (Show slc, Show s, Show f, Show h, Show tr, Show tr') => Show (ReplayStep dev tr tr' slc s f h) Source # | |
Defined in RL.ReplayBuffer Methods showsPrec :: Int -> ReplayStep dev tr tr' slc s f h -> ShowS # show :: ReplayStep dev tr tr' slc s f h -> String # showList :: [ReplayStep dev tr tr' slc s f h] -> ShowS # | |
data ReplayBuffer (dev :: (DeviceType, Nat)) tr tr' slc s f h Source #
Constructors
| ReplayBuffer !Int ![ReplayStep dev tr tr' slc s f h] |
Instances
| (Show slc, Show s, Show f, Show h, Show tr, Show tr') => Show (ReplayBuffer dev tr tr' slc s f h) Source # | |
Defined in RL.ReplayBuffer Methods showsPrec :: Int -> ReplayBuffer dev tr tr' slc s f h -> ShowS # show :: ReplayBuffer dev tr tr' slc s f h -> String # showList :: [ReplayBuffer dev tr tr' slc s f h] -> ShowS # | |
mkReplayBuffer :: forall (dev :: (DeviceType, Nat)) tr tr' slc s f h. Int -> ReplayBuffer dev tr tr' slc s f h Source #
seedReplayBuffer :: forall (dev :: (DeviceType, Nat)) tr tr' slc s f h. Int -> [ReplayStep dev tr tr' slc s f h] -> ReplayBuffer dev tr tr' slc s f h Source #
pushStep :: forall (dev :: (DeviceType, Nat)) tr tr' slc s f h. ReplayBuffer dev tr tr' slc s f h -> ReplayStep dev tr tr' slc s f h -> ReplayBuffer dev tr tr' slc s f h Source #
sampleSteps :: forall (dev :: (DeviceType, Nat)) tr tr' slc s f h. ReplayBuffer dev tr tr' slc s f h -> Int -> IO [ReplayStep dev tr tr' slc s f h] Source #