trinity.buffer.operators.mappers.pass_rate_calculator module#
- class trinity.buffer.operators.mappers.pass_rate_calculator.PassRateCalculator(**kwargs)[源代码]#
-
- process(exps: List[Experience]) Tuple[List[Experience], Dict][源代码]#
Process a list of experiences and return a transformed list.
- 参数:
exps (List[Experience]) -- List of experiences to process, which contains all experiences generated by the Explorer in one explore step.
- 返回:
A tuple containing the processed list of experiences and a dictionary of metrics.
- 返回类型:
Tuple[List[Experience], Dict]