rl icon indicating copy to clipboard operation
rl copied to clipboard

[Feature Request] Explained Variance

Open oswald1337 opened this issue 1 year ago • 2 comments

Motivation

Add Explained Variance logging for PPO. (see https://scikit-learn.org/stable/modules/generated/sklearn.metrics.explained_variance_score.html)

Solution

The returned tensordict of PPO loss contains Explained Variance as metadata. This can be toggled (default = True) when instantiating the PPO loss.

Checklist

  • [ x ] I have checked that there is no similar issue in the repo (required)

oswald1337 avatar Jun 17 '25 13:06 oswald1337

This is done?

https://github.com/pytorch/rl/pull/3010

thomasbbrunner avatar Jul 11 '25 15:07 thomasbbrunner

Yep indeed

vmoens avatar Jul 11 '25 15:07 vmoens