[MRG] Remove dead code from BaseGradientBoosting
The code related to min_weight_leaf is not used anymore.
It was originally introduced in commit
The code is unused since commit
@@ -1571,13 +1571,6 @@ class BaseGradientBoosting(BaseEnsemble, metaclass=ABCMeta):
n_inbag = max(1, int(self.subsample * n_samples))
loss_ = self.loss_
- # Set min_weight_leaf from min_weight_fraction_leaf
- if self.min_weight_fraction_leaf != 0. and sample_weight is not None:
- min_weight_leaf = (self.min_weight_fraction_leaf *
- np.sum(sample_weight))
- else:
- min_weight_leaf = 0.
-
if self.verbose:
verbose_reporter = VerboseReporter(self.verbose)
verbose_reporter.init(self, begin_at_stage)
