schollz / find

High-precision indoor positioning framework for most wifi-enabled devices.
https://www.internalpositioning.com/
GNU Affero General Public License v3.0
5.03k stars 370 forks source link

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

Open nordlead2005 opened 6 years ago

nordlead2005 commented 6 years ago

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

https://github.com/schollz/find/blob/ebe2a554ca8ddee26ba7c90fff20decbdcfdac97/rf.py#L52

schollz commented 6 years ago

Oh thanks! I will look into that

asksven commented 6 years ago

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