Remove redundant setting of self.X, self.y
It is already done in self._fit()
@@ -107,11 +107,9 @@ class RLRLearner(sklearn.linear_model.LogisticRegression, ActiveLearner):
self.distances = numpy.delete(self.distances, index, axis=0)
def mark(self, pairs: TrainingExamples, y: LabelsLike) -> None:
-
- self.y = numpy.concatenate([self.y, y]) # type: ignore[arg-type]
- self.X = numpy.vstack([self.X, self._distances(pairs)])
-
- self._fit(self.X, self.y)
+ y = numpy.concatenate([self.y, y])
+ X = numpy.vstack([self.X, self._distances(pairs)])
+ self._fit(X, y)
def _bias(self) -> float:
positive: int = numpy.sum(self.y == 1)
