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

'STOCHASTICAgent' object has no attribute 'save' #1

Open
gtilg opened this issue Nov 17, 2021 · 1 comment
Open

'STOCHASTICAgent' object has no attribute 'save' #1

gtilg opened this issue Nov 17, 2021 · 1 comment

Comments

@gtilg
Copy link

gtilg commented Nov 17, 2021

Hi,

first of all - thanks a lot for this code!

Both my python skills and reinforcement skills are yet under development. However, when I run a standard scenario from the "main.py" file with a stochastic agent (and in my case the Ingolstadt 7 scenario), I get the following AttributeError:

'STOCHASTICAgent' object has no attribute 'save'

Indeed, I didnt find such method (neither in agents/stochastic.py, nor in the agents.agent.py).

I know I could add such a method, but any help on how to actually do the "save" is very much appreciated.

Thank you!
Gabriel

@jault
Copy link
Collaborator

jault commented Nov 17, 2021

Hi Gabriel, thanks for bringing this to our attention.

This could be addressed through python random's getstate() and setstate() functions (along with saving to disk via pickle).
https://docs.python.org/3/library/random.html
We'll include this as soon as possible.

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