Skip to content

How to log the action space variables to tensorboard #84

Answered by Toni-SM
maths4513 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @maths4513

If you want to log the actions taken by the policy (rather than the action space: definition of the action expected by the environment) currently you need to modify the agent or the trainer to include the agent.track_data(...) call

Also, you can run the training manually and log the variables you want as follow:

...
agent = TRPO(models=models_trpo,
             memory=memory,
             cfg=cfg_trpo,
             observation_space=env.observation_space,
             action_space=env.action_space,
             device=device)


# Run training manually
# initialize agent
agent.init()

# reset environment
states, infos = env.reset()

import tqdm
timesteps = 1600

for timestep in 

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by maths4513
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants