Ok, I think I've identified the problem, and it's in NuPIC itself, not
in the geospatial app:

https://github.com/numenta/nupic/issues/1798

David, once this is fixed, I'll probably ask you to update NuPIC and
try the example again. Thanks again for the bug report. It is crucial
that we find these errors!

---------
Matt Taylor
OS Community Flag-Bearer
Numenta


On Mon, Feb 2, 2015 at 9:58 AM, Matthew Taylor <[email protected]> wrote:
> Thanks, I'm looking into it:
> https://github.com/numenta/nupic.geospatial/issues/41
> ---------
> Matt Taylor
> OS Community Flag-Bearer
> Numenta
>
>
> On Sat, Jan 31, 2015 at 5:01 AM, David Waldrop
> <[email protected]> wrote:
>> 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
>>
>>
>>

Reply via email to