Beispiel #1
0
 def test_cv_no_data(self):
     accumulator = Accumulator()
     self.assertTrue(accumulator.cv() is None)
Beispiel #2
0
 def test_cv(self):
     accumulator = Accumulator()
     data = np.arange(10)
     for point in data:
         accumulator.push(point)
     self.assertTrue(accumulator.cv() == np.std(data) / np.mean(data))