Open jta1954 opened 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.
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.
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!
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