TRPO (Schulman et al., 2015) improves a policy by maximizing the advantage of new actions, weighted by how much more likely the new policy makes them. The ratio is an importance weight that corrects for sampling from the old policy.
Implement surrogate_objective(ratio, advantage), returning the mean of ratio * advantage.
Multiply element-wise and take the mean.
No results yet
Run your code to check it against the examples, or submit to run every test.