MNT Redundant statement in AdaBoostClassifier
@@ -590,8 +590,7 @@ class AdaBoostClassifier(BaseWeightBoosting, ClassifierMixin):
if not iboost == self.n_estimators - 1:
# Only boost positive weights
sample_weight *= np.exp(estimator_weight * incorrect *
- ((sample_weight > 0) |
- (estimator_weight < 0)))
+ (sample_weight > 0))
return sample_weight, estimator_weight, estimator_error
