def __init__(self): SequentialDataSet.__init__(self, 1, 1) self.newSequence() self.addSample([-1], [-1]) self.addSample([1], [1]) self.addSample([1], [-1]) self.newSequence() self.addSample([1], [1]) self.addSample([1], [-1]) self.newSequence() self.addSample([1], [1]) self.addSample([1], [-1]) self.addSample([1], [1]) self.addSample([1], [-1]) self.addSample([1], [1]) self.addSample([1], [-1]) self.addSample([1], [1]) self.addSample([1], [-1]) self.addSample([1], [1]) self.addSample([1], [-1]) self.newSequence() self.addSample([1], [1]) self.addSample([1], [-1]) self.addSample([-1], [-1]) self.addSample([-1], [-1]) self.addSample([-1], [-1]) self.addSample([-1], [-1]) self.addSample([-1], [-1]) self.addSample([-1], [-1]) self.addSample([-1], [-1]) self.addSample([1], [1]) self.addSample([-1], [1]) self.addSample([-1], [1]) self.addSample([-1], [1]) self.addSample([-1], [1]) self.addSample([-1], [1]) self.newSequence() self.addSample([-1], [-1]) self.addSample([-1], [-1]) self.addSample([1], [1])
def __init__(self): SequentialDataSet.__init__(self, 0, 1) self.newSequence() self.addSample([], [0]) self.addSample([], [1]) self.addSample([], [0]) self.addSample([], [1]) self.addSample([], [0]) self.addSample([], [1]) self.newSequence() self.addSample([], [0]) self.addSample([], [1]) self.addSample([], [0]) self.addSample([], [1]) self.addSample([], [0]) self.addSample([], [1])