def test_l1_norm(self): self.assertTrue( np.array_equal(normalize(self.data, 'l1'), Normalizer.l1_norm(self.data)))
def test_get_normalizer_l1_norm(self): self.assertTrue( np.array_equal( Normalizer.l1_norm(self.data), Normalizer.get_normalizer(Normalizer.L1_NORM, data=self.data)))
def test_functor(self): self.assertTrue( np.array_equal(Normalizer.l1_norm(self.data), Normalizer()(Normalizer.L1_NORM, data=self.data)))