Hello guys,
newbie here.

I want to run swarm example from: https://github.com/numenta/nupic/wiki/Running-Swarms

So I did:

$NUPIC/scripts/run_swarm.py $NUPIC/examples/swarm/simple/search_def.json --maxWorkers=1


But this did not worked and returned this:

http://termbin.com/7eul

Later I figured out that I need to be inside:

$NUPIC/nupic

directory. My NUPIC is following:
NUPIC=$HOME/nupic


So I make it run but I have trouble running other demos. I am trying to figure out where should I put my data, from where they are read, and under which $CWD I have to run commands. I did this one (issued from $NUPIC/nupic directory not $NUPIC/)

strace -ff -e trace=open -o trace $NUPIC/scripts/run_swarm.py $NUPIC/examples/swarm/simple/search_def.json --maxWorkers=1

here is result:
http://termbin.com/29ko

seems that hotgym.csv is read from

$HOME/.local/lib/python2.7/site-packages/nupic-0.3.0.dev0-py2.7-linux-x86_64.egg/nupic/datafiles/extra/hotgym/hotgym.csv

and not from $NUPIC directory. Following shows the location of data in config file for swarm:

grep gym.csv /home/marek/nupic/examples/swarm/simple/search_def.json

returned:

"source": "file://extra/hotgym/hotgym.csv",

here are hotgym.csv files that I have under $NUPIC


find $NUPIC -iname "hotgym.csv"

shows that that "hotgym.csv" is located under following directories:

/home/marek/nupic/build/lib.linux-x86_64-2.7/nupic/datafiles/extra/hotgym/hotgym.csv
/home/marek/nupic/nupic/datafiles/extra/hotgym/hotgym.csv

but as seen above it is not read from here.




Problem:
Abopve mentioned facts causes problem because when I want to run some demos (I've tried predictigng sine waves) from net it does not work. I've created dedicated dir to it and put here data run swarm etc.


3 questions:
1. Why do I have to be under $NUPIC/nupic when I want to run swarm and why $NUPIC is not enought?

2. Why are data loaded from $HOME/.local/lib/python2.7/site-packages/nupic-0.3.0.dev0-py2.7-linux-x86_64.egg instead of $NUPIC ?

3 how to fix this so I can run demos from their dedicated dir?



Thank you


Reply via email to