Skip to content

Commit

Permalink
Final refactor push
Browse files Browse the repository at this point in the history
  • Loading branch information
tgsmith61591 committed Oct 27, 2016
1 parent 205b9f0 commit cfde14d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions skutil/h2o/pipeline.py
Expand Up @@ -195,16 +195,16 @@ def _pre_transform(self, frame=None):
next_feature_names = self.feature_names
for name, transform in self.steps[:-1]:
# for each transformer in the steps sequence, we need
# to ensure the target_feature has been set... we do
# to ensure the ``target_feature`` has been set... we do
# this in the fit method and not the init because we've
# now validated the y/target_feature. Also this way if
# target_feature is ever changed, this will be updated...
# now validated the ``target_feature``. Also this way if
# ``target_feature`` is ever changed, this will be updated...
transform.target_feature = self.target_feature

# if the feature names are explicitly set in this estimator,
# we won't set them to the `next_feature_names`, however,
# we won't set them to the ``next_feature_names``, however,
# if the names are *not* explicitly set, we will set the
# estimator's `feature_names` to the `next_feature_names`
# estimator's ``feature_names`` to the ``next_feature_names``
# variable set...
if transform.feature_names is None:
transform.feature_names = next_feature_names
Expand Down

0 comments on commit cfde14d

Please sign in to comment.