def clear(self):
self._Memory = None<EOL>self._numPatterns = <NUM_LIT:0><EOL>self._M = None<EOL>self._categoryList = []<EOL>self._partitionIdList = []<EOL>self._partitionIdMap = {}<EOL>self._finishedLearning = False<EOL>self._iterationIdx = -<NUM_LIT:1><EOL>if self.maxStoredPatterns > <NUM_LIT:0>:<EOL><INDENT>assert self.useSparseMemory, ("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>self.fixedCapacity = True<EOL>self._categoryRecencyList = []<EOL><DEDENT>else:<EOL><INDENT>self.fixedCapacity = False<EOL><DEDENT>self._protoSizes = None<EOL>self._s = None<EOL>self._vt = None<EOL>self._nc = None<EOL>self._mean = None<EOL>self._specificIndexTraining = False<EOL>self._nextTrainingIndices = None<EOL>
Clears the state of the KNNClassifier.