コード例 #1
0
 def plain_rel_inf_gain(self):
     apriori_entropy = pylib_probabilities.compute_entropy_absdistrib([1]
                                            * self.get_class_number())
     real_entropy = self.get_class_entropy()
     return pylib_probabilities.rel_info_gain(apriori_entropy,
                                              real_entropy,
                                              real_entropy)
コード例 #2
0
 def plain_rel_inf_gain(self):
     apriori_entropy = pylib_probabilities.compute_entropy_absdistrib(
         [1] * self.get_class_number())
     real_entropy = self.get_class_entropy()
     return pylib_probabilities.rel_info_gain(apriori_entropy, real_entropy,
                                              real_entropy)
コード例 #3
0
 def get_class_entropy(self):
     return pylib_probabilities.compute_entropy_absdistrib(self.class_freq_vector())
コード例 #4
0
 def get_class_entropy(self):
     return pylib_probabilities.compute_entropy_absdistrib(
         self.class_freq_vector())