def compute(self, inputs, outputs):
record = self._constructClassificationRecord(inputs)<EOL>if record.ROWID >= self.getParameter('<STR_LIT>'):<EOL><INDENT>self._classifyState(record)<EOL><DEDENT>self._recordsCache.append(record)<EOL>while len(self._recordsCache) > self.cacheSize:<EOL><INDENT>self._recordsCache.pop(<NUM_LIT:0>)<EOL><DEDENT>self.labelResults = record.anomalyLabel<EOL>self._iteration += <NUM_LIT:1><EOL>
Process one input sample.
This method is called by the runtime engine.