subutai / nupic.subutai

Subutai's personal nupic code and experiments
GNU Affero General Public License v3.0
30 stars 25 forks source link

runtime error #2

Open jta1954 opened 10 years ago

jta1954 commented 10 years ago

After seeing your explanation about anomalies, I want to try it for myself. So I cloned your code and started run_all.sh in run_anomaly. I got this runtime error, which I cannot explain. I checked the nupic-mails, looking for maxBoost, but I found nothing. I have cloned nupic, but not nupic.core, could that be the reason? My knowledge of python is not so great, so maybe I do something stupid.

ERROR: Unknown parameter 'maxBoost' for region 'SP' of type 'py.SPRegion' Valid parameters are: stimulusThreshold ..... spOutputNonZeros self [/home/jos/nta/source/repo/nta/engine/YAMLUtils.cpp line 280] Traceback (most recent call last): File "run_anomaly.py", line 127, in runAnomaly(options) File "run_anomaly.py", line 54, in runAnomaly model = ModelFactory.create(modelParams) File "/home/jos/nta/eng/lib/python2.7/site-packages/nupic/frameworks/opf/modelfactory.py", line 76, in create return modelClass(*_modelConfig['modelParams']) File "/home/jos/nta/eng/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py", line 203, in init anomalyParams) File "/home/jos/nta/eng/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py", line 1156, in createCLANetwork n.addRegion("SP", "py.SPRegion", json.dumps(spParams)) File "/home/jos/nta/eng/lib/python2.7/site-packages/nupic/engine/__init.py", line 636, in addRegion engine.Network.addRegion(self, name, nodeType, nodeParams) File "/home/jos/nta/eng/lib/python2.7/site-packages/nupic/bindings/engine_internal.py", line 863, in addRegion return _engine_internal.Network_addRegion(_args, **kwargs) RuntimeError: Unknown parameter 'maxBoost' for region 'SP' of type 'py.SPRegion' Valid parameters are: stimulusThreshold ..... spOutputNonZeros self

subutai commented 10 years ago

Thanks. My very first bug report on this repo!!

I just tried it with the latest version of nupic and it seems to work. You do need to have a valid install of nupic, including nupic.core. Can you try going to examples/opf/clients/hotgym/anomaly inside the nupic repo and type python hotgym_anomaly.py?

If that gives an error then there is probably something wrong with the nupic install.

jta1954 commented 10 years ago

Thanks, I tried that and that failed too. I noticed that I had 2 directories with nupic-files in it (nta and nupic). So I threw everything away and installed it again. Now I have all kind of problems with environment, so I have to work on that.

subutai commented 10 years ago

OK. I would recommend emailing your problems to the nupic list. The people there are very helpful and someone probably has already seen the exact issue you are running into!