File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -414,6 +414,7 @@ def transform(self):
414
414
Xt : array-like, shape = [n_samples, n_transformed_features]
415
415
"""
416
416
# _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
417
418
if self ._final_estimator is not None :
418
419
self ._final_estimator .transform
419
420
return self ._transform
@@ -444,6 +445,7 @@ def inverse_transform(self):
444
445
Xt : array-like, shape = [n_samples, n_features]
445
446
"""
446
447
# raise AttributeError if necessary for hasattr behaviour
448
+ # XXX: Handling the None case means we can't use if_delegate_has_method
447
449
for name , transform in self .steps :
448
450
if transform is not None :
449
451
transform .inverse_transform
You can’t perform that action at this time.
0 commit comments