Skip to content

Bug fix column list transform input #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 29, 2019

Conversation

vishalbollu
Copy link
Contributor

No description provided.

@vishalbollu vishalbollu requested a review from deliahu January 29, 2019 04:59

for alias in transform_resource["aliases"]:
input_cols = sorted(transform_resource["inputs"]["features"].values())
for alias in transformed_feature["aliases"][1:]:
logger.info("Transforming {} to {}".format(", ".join(input_cols), alias))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit of an edge case, and it actually isn't possible until we allow chained transformations, but in theory there could be an alias transformed feature that uses aliased features as inputs, so it might be worth it to re-generate the names of the input cols. You could make a helper in context.py that does this and call it twice here (once for the actual transformation, and once for each additional alias). But since right now we don't have chained transformations and raw feature aliases are not allowed, it actually isn't an issue at the moment, so we can address this in the future when we add chained transformations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea definitely a case that we need to look out for, good point.

@vishalbollu vishalbollu merged commit 13e3cf9 into master Jan 29, 2019
@vishalbollu vishalbollu deleted the bug-fix-column-list-transform-input branch February 1, 2019 00:05
vishalbollu added a commit that referenced this pull request Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants