Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to save the log which axis is each epoch not epoch's steps? #1154

Open
9 tasks
hems111318136 opened this issue May 28, 2024 · 2 comments
Open
9 tasks

How to save the log which axis is each epoch not epoch's steps? #1154

hems111318136 opened this issue May 28, 2024 · 2 comments
Labels
enhancement Feature that is not a new algorithm or an algorithm enhancement

Comments

@hems111318136
Copy link

hems111318136 commented May 28, 2024

  • 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
    • design request (i.e. "X should be changed to Y.")
  • 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)

Hi,
I want to change the x-axis of the log during training to represent the epoch number instead of the step count of the epoch.
Is there already have the api to do so?

@MischaPanch MischaPanch added the enhancement Feature that is not a new algorithm or an algorithm enhancement label May 29, 2024
@MischaPanch
Copy link
Collaborator

Hi @hems111318136

Right now the logging is rather rigid and handled fully in the trainer.

We have been working on making the data collection and logging more flexible, so a series of pull requests will follow soon that will address this issue. For the moment, the only way to control logging for you would be to use a custom Trainer (inherit from BaseTrainer).

We expect to add these new features over the course of the next two months

@hems111318136
Copy link
Author

hems111318136 commented May 29, 2024

Got it, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature that is not a new algorithm or an algorithm enhancement
Projects
None yet
Development

No branches or pull requests

2 participants