trinity.algorithm.sample_strategy.mix_sample_strategy module#
- class trinity.algorithm.sample_strategy.mix_sample_strategy.MixSampleStrategy(buffer_config: BufferConfig, **kwargs)[源代码]#
-
The default sample strategy.
- __init__(buffer_config: BufferConfig, **kwargs)[源代码]#
- async sample(step: int) Tuple[List[Experience], Dict, List][源代码]#
Sample data from buffer.
- 参数:
step (int) -- The step number of current step.
- 返回:
The sampled List[Experience] data. Dict: Metrics for logging. List: Representative data for logging.
- 返回类型:
List[Experience]