这是indexloc提供的服务,不要输入任何密码
Skip to content

Is it possible to customize the logger to record some specific parameters? #977

@zichunxx

Description

@zichunxx
  • I have marked all applicable categories:
    • exception-raising bug
    • RL algorithm bug
    • documentation request (i.e. "X is missing from the documentation.")
    • new feature request
  • I have visited the source website
  • I have searched through the issue tracker for duplicates
  • I have mentioned version numbers, operating system and environment, where applicable:
    import tianshou, gymnasium as gym, torch, numpy, sys
    print(tianshou.__version__, gym.__version__, torch.__version__, numpy.__version__, sys.version, sys.platform)
0.5.1 0.29.1 1.12.1 1.24.4 3.9.17 | packaged by conda-forge | (main, Aug 10 2023, 07:02:31) 
[GCC 12.3.0] linux

Hi!

I want to customize a logger to record some desired parameters, like success rate.

I'm trying to get to know the Tianshou API, but I'm not sure if it is easy to implement. Or, are there any examples to be referred to?

I have trained some Mujoco example models. Only these parameters are recorded, such as env_step, length, length_std, test/train reward, etc.

If this is unavailable for the current version of Tianshou? Would it be considered a new feature to record the variation of the success rate during training?

Thanks in advance!

Metadata

Metadata

Assignees

Labels

enhancementFeature that is not a new algorithm or an algorithm enhancementminorRequires small changes to be fixed

Type

No type

Projects

Status

To do

Relationships

None yet

Development

No branches or pull requests

Issue actions