code: def setSequenceType(self, value):
          
          if value == "ordered-continuous":
              self.orderedInputs = 1           
              self.initContext = 0             
          elif value == "random-segmented":
              self.orderedInputs = 0
              self.initContext = 1
          elif value == "random-continuous":
              self.orderedInputs = 0
              self.initContext = 0
          elif value == "ordered-segmented":
              self.orderedInputs = 1
              self.initContext = 1
          else:
              raise AttributeError("invalid sequence type: '%s'" % value)
          self.sequenceType = value
docs: You must set this!