Elffuss BraidHub

kikocis/auto-code-rover public

main · 563 BRawPermalink
1diff --git a/sklearn/ensemble/voting.py b/sklearn/ensemble/voting.py
2--- a/sklearn/ensemble/voting.py
3+++ b/sklearn/ensemble/voting.py
4@@ -78,6 +78,8 @@ def fit(self, X, y, sample_weight=None):
5
6 if sample_weight is not None:
7 for name, step in self.estimators:
8+ if step is None:
9+ continue
10 if not has_fit_parameter(step, 'sample_weight'):
11 raise ValueError('Underlying estimator \'%s\' does not'
12 ' support sample weights.' % name)