def _deleteRangeFromKNN(self, start=<NUM_LIT:0>, end=None):
prototype_idx = numpy.array(<EOL>self._knnclassifier.getParameter('<STR_LIT>'))<EOL>if end is None:<EOL><INDENT>end = prototype_idx.max() + <NUM_LIT:1><EOL><DEDENT>idsIdxToDelete = numpy.logical_and(prototype_idx >= start,<EOL>prototype_idx < end)<EOL>idsToDelete = prototype_idx[idsIdxToDelete]<EOL>nProtos = self._knnclassifier._knn._numPatterns<EOL>self._knnclassifier._knn.removeIds(idsToDelete.tolist())<EOL>assert self._knnclassifier._knn._numPatterns == nProtos - len(idsToDelete)<EOL>
Removes any stored records within the range from start to
end. Noninclusive of end.

parameters
------------
start - integer representing the ROWID of the start of the deletion range,
end - integer representing the ROWID of the end of the deletion range,
  if None, it will default to end.