We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e7aea commit ee7773bCopy full SHA for ee7773b
imblearn/pipeline.py
@@ -170,6 +170,12 @@ def _validate_steps(self):
170
def _iter(
171
self, with_final=True, filter_passthrough=True, filter_resample=True
172
):
173
+ """Generate (idx, (name, trans)) tuples from self.steps
174
+
175
+ When `filter_passthrough` is `True`, 'passthrough' and None transformers
176
+ are filtered out. When `filter_resample` is `True`, estimator with a
177
+ method `fit_resample` are filtered out.
178
+ """
179
it = super()._iter(with_final, filter_passthrough)
180
if filter_resample:
181
return filter(lambda x: not hasattr(x[-1], "fit_resample"), it)
0 commit comments