Skip to content

BasicBuffer

python_motion_planning.local_planner.dqn.BasicBuffer

Basic replay buffer.

Parameters:

Name Type Description Default
max_size int

buffer capacity

required

push(*experience)

Injecting an experience into the replay buffer.

Parameters:

Name Type Description Default
experience tuple

five-element tuple including state, action, reward, next_state and done flag

()

sample(batch_size)

Sampling a batch of data.

Parameters:

Name Type Description Default
batch_size int

the size of sampling batch

required

sampleSequence(batch_size)

Sampling a contiguous batch of data.

Parameters:

Name Type Description Default
batch_size int

the size of sampling batch

required