oa::ml::RolloutCollector

Environment-neutral categorical collector over borrowed owners. Collection records one complete transaction and returns its exact Event without waiting. It owns no environment, model, rollout storage, Engine, or queue.

StRust public API

Declaration

pub struct RolloutCollector<'environment, 'model> { /* private fields */ }
Public Rust declaration.

Public Methods

pub fn collect(&mut self, rollout: &mut RolloutBuffer) -> Result<Event>
pub const fn metrics(&self) -> RolloutCollectorMetrics

Associated Functions

pub fn new( environment: &'environment mut dyn Environment, model: &'model dyn ActorCritic, config: RolloutCollectorConfig, ) -> Result<Self>

Public Method Documentation

pub fn collect( &mut self, rollout: &mut RolloutBuffer ) -> Result<Event>
No public source comment is attached to this declaration.
pub const fn metrics( &self ) -> RolloutCollectorMetrics
No public source comment is attached to this declaration.
pub fn new( environment: &'environment mut dyn Environment, model: &'model dyn ActorCritic, config: RolloutCollectorConfig ) -> Result<Self>
No public source comment is attached to this declaration.