Browse files

Check for "vector" predicted field before record sensor compute. (#3754)

  • Loading branch information...
rhyolight committed Aug 8, 2017
1 parent d809fb1 commit c2967d9a3b653c2a8d26495e93ddc3dc517b51d6
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/nupic/regions/
@@ -377,7 +377,10 @@ def compute(self, inputs, outputs):
self.encoder.encodeIntoArray(data, outputs["dataOut"])
# If there is a field to predict, set bucketIdxOut and actValueOut.
if self.predictedField is not None:
# There is a special case where a predicted field might be a vector, as in
# the CoordinateEncoder. Since this encoder does not provide bucket
# indices for prediction, we will ignore it.
if self.predictedField is not None and self.predictedField != "vector":
allEncoders = list(self.encoder.encoders)
if self.disabledEncoder is not None:

0 comments on commit c2967d9

Please sign in to comment.