thu-ml / tianshou

An elegant PyTorch deep reinforcement learning library.
https://tianshou.org
MIT License
7.73k stars 1.12k forks source link

How to monitor the episode/epoch return/length in Tianshou? #1082

Open PingH129 opened 5 months ago

PingH129 commented 5 months ago
Trinkle23897 commented 5 months ago

You should check the collector's return value. It has episodic statistic number. For example: https://github.com/thu-ml/tianshou/blob/5bf923c9bd2a08746dd599010f92e1365bcfb844/tianshou/data/collector.py#L574-L581