framework.middleware.functional.evaluator¶
evaluator¶
interaction_evaluator¶
- ding.framework.middleware.functional.evaluator.interaction_evaluator(cfg: EasyDict, policy: Policy, env: BaseEnvManager, render: bool = False, **kwargs) Callable [source]¶
- Overview:
The middleware that executes the evaluation.
- Arguments:
cfg (
EasyDict
): Config.policy (
Policy
): The policy to be evaluated.env (
BaseEnvManager
): The env for the evaluation.render (
bool
): Whether to render env images and policy logits.kwargs: (
Any
): Other arguments for specific evaluation.