Realm

oa::ml::ActorCritic

Environment-neutral discrete actor/critic behavior. PPO depends on this contract rather than a concrete network architecture.

TrRust public API

Declaration

pub trait ActorCritic: Module { // Required method fn evaluate(&self, observation: &Matrix) -> Result<ActorCriticOutput>; // Provided methods fn auxiliary_loss(&self, task: &Matrix) -> Result<Matrix> { ... } fn evaluates_rows_independently(&self) -> bool { ... } }
Public Rust declaration.

Public Methods

fn evaluate(&self, observation: &Matrix) -> Result<ActorCriticOutput>
fn auxiliary_loss(&self, task: &Matrix) -> Result<Matrix>
fn evaluates_rows_independently(&self) -> bool

Public Method Documentation

fn evaluate( &self, observation: &Matrix ) -> Result<ActorCriticOutput>
No public source comment is attached to this declaration.
fn auxiliary_loss( &self, task: &Matrix ) -> Result<Matrix>
No public source comment is attached to this declaration.
fn evaluates_rows_independently( &self ) -> bool
No public source comment is attached to this declaration.