1
0
Fork 0

removing redundant code

This commit is contained in:
Alejandro Moreo Fernandez 2022-05-19 13:43:32 +02:00
parent fa577abdd2
commit fd339839a5
1 changed files with 0 additions and 8 deletions

View File

@ -442,14 +442,6 @@ class PACC(AggregativeProbabilisticQuantifier):
classes = val_data.classes_ classes = val_data.classes_
self.pcc = PCC(self.learner) self.pcc = PCC(self.learner)
# estimate the matrix with entry (i,j) being the estimate of P(yi|yj), that is, the probability that a
# document that belongs to yj ends up being classified as belonging to yi
n_classes = len(classes)
confusion = np.empty(shape=(n_classes, n_classes))
for i, class_ in enumerate(classes):
confusion[i] = y_[y == class_].mean(axis=0)
self.Pte_cond_estim_ = self.getPteCondEstim(classes, y, y_) self.Pte_cond_estim_ = self.getPteCondEstim(classes, y, y_)
return self return self