oa::ml::loss::ppo_clipped_policy

Compute the mean negative clipped PPO surrogate objective. Errors Returns an error unless all inputs are matching nonempty same-engine FP32 matrices and clip_epsilon is finite in (0, 1).

FnRust public API

Function Documentation

pub fn ppo_clipped_policy( new_log_probability: &Matrix, old_log_probability: &Matrix, advantage: &Matrix, clip_epsilon: f32 ) -> Result<Matrix>
Compute the mean negative clipped PPO surrogate objective. Errors Returns an error unless all inputs are matching nonempty same-engine FP32 matrices and clip_epsilon is finite in (0, 1).