You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this commit, we start using self.predictedField as a condition to get encoder outputs instead of self.predictedFieldIdx. The CoordinateEncoder's predictedFieldIdx is always -1, so it worked before the change. But the CoordinateEncoders' predictedField is not None, it is vector, so the compute function tries to get bucket values from the encoder that do not exist.
We need to add a special condition to the compute function to check also for self.predictedField == "vector".
The text was updated successfully, but these errors were encountered:
rhyolight
changed the title
Predicted field is not an integer when using coordinate encoder
Encoders using vector input like CoordinateEncoder do not work anymore
Aug 8, 2017
I found this issue when trying to get https://github.com/numenta/nupic.geospatial running with NuPIC 1.0.
Looks like this is the origin of the bug:
34dd874#diff-d62e7e036bc450e0076245d0839b7ef4R381
In this commit, we start using
self.predictedField
as a condition to get encoder outputs instead ofself.predictedFieldIdx
. The CoordinateEncoder'spredictedFieldIdx
is always-1
, so it worked before the change. But the CoordinateEncoders'predictedField
is notNone
, it isvector
, so the compute function tries to get bucket values from the encoder that do not exist.We need to add a special condition to the compute function to check also for
self.predictedField == "vector"
.The text was updated successfully, but these errors were encountered: