oa::PpoTrainer
Complete environment-neutral categorical PPO loop. The environment remains caller-owned; this class owns collection storage, policy bookkeeping, GAE, and optimizer updates. It composes `ItRolloutTraining` because collection and update phases are not the same lifecycle as DQN or SAC.
Public Methods
Static Public Methods
Constructor & Destructor Documentation
Public Method Documentation
Returns
oa::StatusThe declared return value.
Parameters
inObservationconst oa::Matrix &—
Returns
PolicyResultThe declared return value.
Returns
const RolloutBatch &The declared return value.
Returns
oa::StatusThe declared return value.
Returns
const PpoTrainerConfig &The declared return value.
Returns
oa::StatusThe declared return value.
Returns
boolThe declared return value.
Returns
boolThe declared return value.
Parameters
inPathconst oa::String &—
Returns
oa::StatusThe declared return value.
Returns
const PpoTrainerMetrics &The declared return value.
Returns
boolThe declared return value.
Parameters
inObservationconst oa::Matrix &—
inNextObservationconst oa::Matrix &—
inRewardconst oa::Matrix &—
inTerminatedconst oa::Matrix &—
inTruncatedconst oa::Matrix &—
inPolicyconst PolicyResult &—
Returns
oa::StatusThe declared return value.
Returns
RolloutTrainingPhaseThe declared return value.
Parameters
inPathconst oa::String &—
Returns
oa::StatusThe declared return value.
Returns
const oa::ItTraining &The declared return value.
Returns
oa::ItTraining &The declared return value.
Returns
oa::StatusThe declared return value.
Parameters
inEngineoa::Engine &—
inModelActorCritic &—
inOptimizeroa::Optimizer &—
inConfigconst PpoTrainerConfig &—
Returns
oa::Result<oa::UniquePtr<PpoTrainer>>The declared return value.