Open PingH129 opened 5 months ago
import tianshou, gymnasium as gym, torch, numpy, sys print(tianshou.__version__, gym.__version__, torch.__version__, numpy.__version__, sys.version, sys.platform)
I'm using the trainer in Tianshou for MARL, but how can I monitor the episode/epoch return and length in tianshou in the training process?
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
I'm using the trainer in Tianshou for MARL, but how can I monitor the episode/epoch return and length in tianshou in the training process?