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

Access underlying dynamics function #1463

Closed
theophilegervet opened this issue Apr 29, 2019 · 1 comment
Closed

Access underlying dynamics function #1463

theophilegervet opened this issue Apr 29, 2019 · 1 comment

Comments

@theophilegervet
Copy link

Hi,

How could we access the dynamics function of an environment? Given arbitrary state and action, I would like to retrieve the function used to compute the next state (without going through env.step()).

I'm trying to run the cross-entropy method with the true dynamics, but currently I have to duplicate the environment and use step() to propagate my particles. This is super slow and it would be much more convenient to be able to do this in parallel with the dynamics function.

Thank you very much!

@christopherhesse
Copy link
Contributor

You should be able to get these for the toy environments, since they have the transition probabilities. For more advanced environments, some sort of get_state()/set_state() seems the most doable, and is unlikely to be terribly fast.

I think it's unlikely that we'll be able to provide anything better than get_state()/set_state() for most environments, and we don't even support that for most environments currently: #402

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

No branches or pull requests

2 participants