oa::ml::loss::PpoLossConfig

Coefficients for the PPO objective.

StRust public API

Declaration

pub struct PpoLossConfig { pub clip_epsilon: f32, pub value_coefficient: f32, pub entropy_coefficient: f32, }
Public Rust declaration.

Public Methods

fn clone(&self) -> PpoLossConfig
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &PpoLossConfig) -> bool

Associated Functions

fn default() -> Self

Public Data Members

clip_epsilonf32field
value_coefficientf32field
entropy_coefficientf32field

Public Method Documentation

fn clone( &self ) -> PpoLossConfig
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &PpoLossConfig ) -> bool
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.