

def __init__(self, steps=None):
    (names, transformers) = zip(*steps)
    if (len(set(names)) != len(steps)):
        raise ValueError('Names provided are not unique:  {}'.format(names))
    self.steps = list(zip(names, transformers))
    for t in transformers:
        if (not isinstance(t, BaseTransformer)):
            raise TypeError('{:s} is not a BaseTransformer'.format(t))

dataset/ETHPy150Open bmcfee/muda/muda/base.py Pipeline.__init__/original