def __init__(self, inp, target):
        DataSet.__init__(self)
        if isscalar(inp):
            # add input and target fields and link them
            self.addField('input', inp)
            self.addField('target', target)
        else:
            self.setField('input', inp)
            self.setField('target', target)

        self.linkFields(['input', 'target'])

        # reset the index marker
        self.index = 0

        # the input and target dimensions
        self.indim = self.getDimension('input')
        self.outdim = self.getDimension('target')
Initialize an empty supervised dataset.
dataset/ETHPy150Open pybrain/pybrain/pybrain/datasets/supervised.py/SupervisedDataSet.__init__