Skip to content

Commit d835573

Browse files
jnothmanamueller
authored andcommitted
MAINT comment on apparent inconsistency
1 parent 8f7f8f2 commit d835573

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sklearn/pipeline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ def transform(self):
414414
Xt : array-like, shape = [n_samples, n_transformed_features]
415415
"""
416416
# _final_estimator is None or has transform, otherwise attribute error
417+
# XXX: Handling the None case means we can't use if_delegate_has_method
417418
if self._final_estimator is not None:
418419
self._final_estimator.transform
419420
return self._transform
@@ -444,6 +445,7 @@ def inverse_transform(self):
444445
Xt : array-like, shape = [n_samples, n_features]
445446
"""
446447
# raise AttributeError if necessary for hasattr behaviour
448+
# XXX: Handling the None case means we can't use if_delegate_has_method
447449
for name, transform in self.steps:
448450
if transform is not None:
449451
transform.inverse_transform

0 commit comments

Comments
 (0)