oa::ml::evaluation

Module published by the oa::ml module.

MdRust public API

Public Types

Public Functions

pub fn evaluate_categorical( environment: &mut dyn Environment, model: &dyn ActorCritic, config: PolicyEvaluationConfig, ) -> Result<PolicyEvaluationMetrics>

Function Documentation

pub fn evaluate_categorical( environment: &mut dyn Environment, model: &dyn ActorCritic, config: PolicyEvaluationConfig ) -> Result<PolicyEvaluationMetrics>
Deterministically evaluate a categorical policy and return compact telemetry. The complete horizon is recorded and submitted once, followed by one exact wait and three compact rollout readbacks. Greedy action selection uses the donor temperature-zero route. The environment remains open and idle. Errors Returns an error for zero horizon/lanes, a non-discrete environment, model ownership mismatch, environment/model/policy/rollout recording failure, submission/wait failure, readback failure, or counter overflow.