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

Dockerfile/Supervisor sets Find to store data at /data and rf can't find data/group.rf.pkl #212

Open
nordlead2005 opened this issue Feb 9, 2018 · 2 comments

Comments

@nordlead2005
Copy link

I downloaded the dockerfile and supervisor conf and built the docker image and Find randomForest doesn't work. I believe it is because rf.py has "data/" hardcoded, but find gets passed in -data /data

find/rf.py

Line 52 in ebe2a55

with open("data/" + fname + ".rf.json", 'r') as f_in:

@schollz
Copy link
Owner

schollz commented Feb 9, 2018

Oh thanks! I will look into that

@asksven
Copy link

asksven commented Feb 10, 2018

Workaround from #158 setting the volume mountpoint to /usr/local/work/src/github.com/schollz/find does the trick for me. After re-deploying (on kubernetes) /usr/local/work/src/github.com/schollz/find/data was created and contains

-rw------- 1 root root 32768 Feb 10 18:16 <my-group>.db
-rw-r--r-- 1 root root    91 Feb 10 18:16 <my-group>.model
-rw-r--r-- 1 root root  1096 Feb 10 18:16 <my-group>.rf.json
-rw-r--r-- 1 root root  5962 Feb 10 18:16 <my-group>.rf.pkl
drwx------ 2 root root 16384 Nov 11 17:43 lost+found

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

3 participants