示例#1
0
 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
示例#2
0
 def setUp(self):
     self.base = range(100)
     self.n = 5
     self.data = lineflow.zip(*[Dataset(self.base)] * self.n)
示例#3
0
 def setUp(self):
     self.data = Dataset(range(100))
示例#4
0
 def setUp(self):
     self.base = range(100)
     self.data = Dataset(self.base)