def removeSeqStarts(vectors, resets, numSteps=1):
 if (numSteps == 0):
  return vectors
 resetIndices = resets.nonzero()[0]
 removeRows = resetIndices
 for i in range((numSteps - 1)):
  removeRows = numpy.hstack((removeRows, ((resetIndices + i) + 1)))
 return numpy.delete(vectors, removeRows, axis=0)

def removeSeqStarts ( vectors , resets , numSteps = 1 ) : if ( numSteps == 0 ) : return vectors resetIndices = resets . nonzero ( ) [ 0 ] removeRows = resetIndices for i in range ( ( numSteps - 1 ) ) : removeRows = numpy . hstack ( ( removeRows , ( ( resetIndices + i ) + 1 ) ) ) return numpy . delete ( vectors , removeRows , axis = 0 )
convert a list of sequences of pattern indices .