Helo NuPIC, I've downloaded model_params.py for hotgym from this link:
https://raw.githubusercontent.com/numenta/nupic/master/examples/opf/clients/hotgym/simple/model_params.py When I use this one I get this error: Traceback (most recent call last): File "run_nupic.py", line 456, in <module> debug = False) File "run_nupic.py", line 198, in run_experiment Debug = debug File "modules/user_defined_functions.py", line 167, in runModel result_unshifted = model.run(input_record) File "/home/nupic/.local/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py", line 395, in run self._sensorCompute(inputRecord) File "/home/nupic/.local/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py", line 480, in _sensorCompute sensor.compute() File "/home/nupic/.local/lib/python2.7/site-packages/nupic/engine/__init__.py", line 446, in compute return self._region.compute() File "/home/nupic/.local/lib/python2.7/site-packages/nupic/bindings/engine_internal.py", line 1384, in compute return _engine_internal.Region_compute(self) File "/home/nupic/.local/lib/python2.7/site-packages/nupic/regions/RecordSensor.py", line 331, in compute self.encoder.encodeIntoArray(data, outputs["dataOut"]) File "/home/nupic/.local/lib/python2.7/site-packages/nupic/encoders/multi.py", line 95, in encodeIntoArray encoder.encodeIntoArray(self._getInputValue(obj, name), output[offset:]) File "/home/nupic/.local/lib/python2.7/site-packages/nupic/encoders/base.py", line 212, in _getInputValue fieldName, knownFields, fieldName ValueError: Unknown field name 'consumption' in input record. Known fields are 'timestamp, kw_energy_consumption'. This could be because input headers are mislabeled, or because input data rows do not contain a value for 'consumption'. I know that the problem is in the column naming of input.csv file, it's structure is: timestamp,kw_energy_consumption datetime,float T, 7/2/10 0:00,21.2 7/2/10 1:00,16.4 7/2/10 2:00,4.7 ... If I change "kw_energy_consumption" in csv file to "consumption" everything is working. It also works vice versa: when I change "consumption" to "kw_energy_consumption" in model_params.py and keep input.csv untouched. But what if I do not want to touch the csv file nor the model_params.py, is this possible? In other words: I want to know which elements of model_params.py represents columns in my csv (or in more general: what is the structure of model_params.py)? If I know this then I can load model_params.py and change it's instance in memory (not in hdd) directly from python. I mean following like this: model_params["MODEL_PARAMS"]["model"] = "SOMETHING DIFFERENT THAN IT WAS BEFORE" PS: I was trying to somehow figure out which fields to change via debugger using: python -m pdb run_nupic.py import nupic.frameworks.opf.clamodel as CLAModel b CLAModel._sensorCompute but I was not luck if somebody have tip how to do that I would be glad. Best Regards Wakan Tanka -- Best Regards Name: Wakan Tanka a.k.a. Wakatana a.k.a. MackoP00h Location: Europe Note: I'm non native English speaker so please bare with me ;) Contact: [email protected] http://stackoverflow.com/users/1616488/wakan-tanka https://github.com/wakatana https://twitter.com/MackoP00h
