@classmethod
    def getSequenceEnds(cls, dataset):
        sequence_ends = delete(dataset.getField('sequence_index') - 1, 0)
        sequence_ends = append(sequence_ends, dataset.getLength() - 1)
#        print(sequence_ends; exit())
        sequence_ends = array(sequence_ends)
        return sequence_ends
Returns the indices of the last elements of the sequences stored
dataset/ETHPy150Open pybrain/pybrain/pybrain/tools/validation.py/SequenceHelper.getSequenceEnds