def test_entropy_0_proportion(self):
     dataset = self.create_example_dataset().value_filter("A", "v1")
     self.assertEqual(entropy(dataset), 0)
Example #2
0
 def test_entropy_0_proportion(self):
     dataset = self.create_example_dataset().value_filter("A", "v1")
     self.assertEqual(entropy(dataset), 0)
 def test_entropy(self):
     dataset = self.create_example_dataset()
     self.assertAlmostEqual(entropy(dataset), 0.811, places=3)
Example #4
0
 def test_entropy(self):
     dataset = self.create_example_dataset()
     self.assertAlmostEqual(entropy(dataset), 0.811, places=3)