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