Skip to content
Snippets Groups Projects
Commit d835573f authored by Joel Nothman's avatar Joel Nothman Committed by Andreas Mueller
Browse files

MAINT comment on apparent inconsistency

parent 8f7f8f2f
No related branches found
No related tags found
No related merge requests found
......@@ -414,6 +414,7 @@ class Pipeline(_BaseComposition):
Xt : array-like, shape = [n_samples, n_transformed_features]
"""
# _final_estimator is None or has transform, otherwise attribute error
# XXX: Handling the None case means we can't use if_delegate_has_method
if self._final_estimator is not None:
self._final_estimator.transform
return self._transform
......@@ -444,6 +445,7 @@ class Pipeline(_BaseComposition):
Xt : array-like, shape = [n_samples, n_features]
"""
# raise AttributeError if necessary for hasattr behaviour
# XXX: Handling the None case means we can't use if_delegate_has_method
for name, transform in self.steps:
if transform is not None:
transform.inverse_transform
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment