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

init_cache() not working #5

Closed
StefanJanuschke opened this issue Sep 19, 2018 · 3 comments
Closed

init_cache() not working #5

StefanJanuschke opened this issue Sep 19, 2018 · 3 comments

Comments

@StefanJanuschke
Copy link

StefanJanuschke commented Sep 19, 2018

I set up the ML-in-a-Box, machine on Paperspace.
Unfortunately when I run init_cache() get the following error:

FileNotFoundError: [Errno 2] No such file or directory: 'objects/epsilon.pkl

@StefanJanuschke
Copy link
Author

StefanJanuschke commented Sep 19, 2018

Same holds true if I run it on my Windows machine.

Full Error Message:
`FileNotFoundError Traceback (most recent call last)
in ()
1 '''Call only once to init file structure
2 '''
----> 3 init_cache()

in init_cache()
2 def init_cache():
3 """initial variable caching, done only once"""
----> 4 save_obj(INITIAL_EPSILON,"epsilon")
5 t = 0
6 save_obj(t,"time")

in save_obj(obj, name)
1 def save_obj(obj, name ):
----> 2 with open('objects/'+ name + '.pkl', 'wb') as f: #dump files into objects folder
3 pickle.dump(obj, f, pickle.HIGHEST_PROTOCOL)
4 def load_obj(name ):
5 with open('objects/' + name + '.pkl', 'rb') as f:

FileNotFoundError: [Errno 2] No such file or directory: 'objects/epsilon.pkl'`

@StefanJanuschke
Copy link
Author

I copy/pasted the objects folder from your other DinoRun GitHub folder, works now.
Not sure if this is intentional and I just missed something.

@RubenSikkes
Copy link

I think the solution is to just create an objects folder ;)

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