Skip to content
class

PrioritizedBatch

extendsNamedTuple
PrioritizedBatch()

What a prioritized draw returns.

Attributes

episodeEpisode
The chunks, batched exactly as SequenceReplay.sample returns them.
indiceslist of int
Where each chunk came from, to hand back to PrioritizedSequenceReplay.update_priorities.
weightsTensor
Importance-sampling weights, (batch_size,), normalised so the largest is one. A loss corrected for the sampling bias multiplies its per-chunk terms by these.

Used by 1