def compute(self, activeColumns, learn=True):
bottomUpInput = numpy.zeros(self.numberOfCols, dtype=dtype)<EOL>bottomUpInput[list(activeColumns)] = <NUM_LIT:1><EOL>super(TemporalMemoryShim, self).compute(bottomUpInput,<EOL>enableLearn=learn,<EOL>enableInference=True)<EOL>predictedState = self.getPredictedState()<EOL>self.predictiveCells = set(numpy.flatnonzero(predictedState))<EOL>
Feeds input record through TM, performing inference and learning.
Updates member variables with new state.

@param activeColumns (set) Indices of active columns in `t`