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)
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)
def get_class_entropy(self): return pylib_probabilities.compute_entropy_absdistrib(self.class_freq_vector())
def get_class_entropy(self): return pylib_probabilities.compute_entropy_absdistrib( self.class_freq_vector())