def setUp(self): self.data = Dataset(range(100)) window_size = 3 expected = [] it = iter(range(100)) window = tuple(itertools.islice(it, window_size)) while window: expected.append(window) window = tuple(itertools.islice(it, window_size)) self.expected = expected self.window_size = window_size
def setUp(self): self.base = range(100) self.n = 5 self.data = lineflow.zip(*[Dataset(self.base)] * self.n)
def setUp(self): self.data = Dataset(range(100))
def setUp(self): self.base = range(100) self.data = Dataset(self.base)