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

Visualisation of the policy #312

Closed
2 tasks done
MichielKempkens opened this issue Mar 28, 2023 · 1 comment
Closed
2 tasks done

Visualisation of the policy #312

MichielKempkens opened this issue Mar 28, 2023 · 1 comment
Labels
question Further information is requested

Comments

@MichielKempkens
Copy link

MichielKempkens commented Mar 28, 2023

Question ❓

Dear @AlejandroCN7,

Is there any way to visualise the policy in some way with sinergym? I want to visualise/explain the decisions the agent took in some states. I mainly use PPO and DQN.

Kind regards,
Michiel

Checklist

  • I have read the documentation (required)
  • I have checked that there is no similar issue in the repo (required)

📝 Please, don't forget to include more labels besides question if it is necessary.

@MichielKempkens MichielKempkens added the question Further information is requested label Mar 28, 2023
@AlejandroCN7
Copy link
Member

Hi @MichielKempkens,

You can load the trained agent and execute it using Sinergym logger to get a CSV file of interactions between agent and environment. Then, you can visualize that information using matplotlib (for example). Take a look in 'scripts/load_agent.py' (you don't need to use that script if you don't want, but as example to see how to load a model).

Recently we have included WandB compability, see #306 (documentation updated too) in case you want to use it to monitor training data in real time or record evaluations there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants