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

Models' Logits return, #278

Open
ajam74001 opened this issue Apr 17, 2023 · 2 comments
Open

Models' Logits return, #278

ajam74001 opened this issue Apr 17, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ajam74001
Copy link

Hi @takuseno, I was wondering how to return the logits (estimated Q values for each action) of CQL model (or any other Q based learners).

Cheers,
Many thanks for your help in advance,

@ajam74001 ajam74001 added the enhancement New feature or request label Apr 17, 2023
@takuseno
Copy link
Owner

@ajam74001 Thanks for the issue. Unfortunately, there is no function by default. But, you can do it by accessing to internal objects:

# just example
# dqn needs to be built before this.
dqn = d3rlpy.algos.DQN()
dqn.impl.q_function(torch.rand((1, 10)))

@ajam74001
Copy link
Author

Great! Many thanks for the response, dear @takuseno.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants