trinity.algorithm.sample_strategy.mix_sample_strategy module

class trinity.algorithm.sample_strategy.mix_sample_strategy.MixSampleStrategy(buffer_config: BufferConfig, **kwargs)[source]

Bases: SampleStrategy

The default sample strategy.

__init__(buffer_config: BufferConfig, **kwargs)[source]
async sample(step: int) Tuple[Experiences, Dict, List][source]

Sample data from buffer.

Parameters:

step (int) – The step number of current step.

Returns:

The sampled Experiences data. Dict: Metrics for logging. List: Representative data for logging.

Return type:

Experiences

classmethod default_args() Dict[source]

Get the default arguments of the sample strategy.