def test_denorm_input(self):
     normalizer = Normalizer(in_min = -50, in_max = 50,
                             norm_min = -3, norm_max = 3)
     
     self.assertAlmostEqual(-49, normalizer.denorm_input(-2.94))
     self.assertAlmostEqual(0, normalizer.denorm_input(0))
     self.assertAlmostEqual(33, normalizer.denorm_input(1.98))
    def test_default_normalizer(self):
        normalizer = Normalizer()

        self.assertAlmostEqual(.27, normalizer.norm_input(.27))
        self.assertAlmostEqual(.27, normalizer.denorm_input(
            normalizer.norm_input(.27)))

        self.assertAlmostEqual(.27, normalizer.norm_output(.27))
        self.assertAlmostEqual(.27, normalizer.denorm_output(.27))