From fd339839a541bb13eea4462423acbd3d4e101eef Mon Sep 17 00:00:00 2001 From: Alejandro Moreo Date: Thu, 19 May 2022 13:43:32 +0200 Subject: [PATCH] removing redundant code --- quapy/method/aggregative.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/quapy/method/aggregative.py b/quapy/method/aggregative.py index 19969c6..bb71525 100644 --- a/quapy/method/aggregative.py +++ b/quapy/method/aggregative.py @@ -442,14 +442,6 @@ class PACC(AggregativeProbabilisticQuantifier): classes = val_data.classes_ 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_) return self