I have just found another error with the geospatial example.
the use of time encoders is not working - see below:
python run.py output/sample.csv -t -v
yields the following error:
Traceback (most recent call last):
File "run.py", line 121, in <module>
not options.manualSequence)
File "run.py", line 98, in run
verbose=verbose)
File
"/home/davidwaldrop/nupic.geospatial-master/model/geospatial_anomaly.py",
line 144, in runGeospatialAnomaly
result = model.run(modelInput)
File
"/usr/local/lib/python2.7/dist-packages/nupic/frameworks/opf/clamodel.py",
line 381, in run
self._sensorCompute(inputRecord)
File
"/usr/local/lib/python2.7/dist-packages/nupic/frameworks/opf/clamodel.py",
line 449, in _sensorCompute
sensor.compute()
File
"/usr/local/lib/python2.7/dist-packages/nupic/engine/__init__.py",
line 443, in compute
return self._region.compute()
File
"/usr/local/lib/python2.7/dist-packages/nupic/bindings/engine_internal.py",
line 1299, in compute
return _engine_internal.Region_compute(self)
File
"/usr/local/lib/python2.7/dist-packages/nupic/regions/RecordSensor.py",
line 296, in compute
outputs['sourceOut'][:] = self.encoder.getScalars(data)
ValueError: could not broadcast input array from shape (2) into
shape (5)
The error happens in the RecordSensor.py file in the compute function at
the statement below:
# Write out the scalar values obtained from the data source. These
# are often logged to a file
outputs['sourceOut'][:] = self.encoder.getScalars(data)
I am hesitant to mess around with the internal stuff and further am not
sure if even necessary. Any advice and help wouild be greatly appreciated.
David Waldrop *|||* 301.526.9500