Skip to content

Custom naming for multi output primitives - #780

Merged
thehomebrewnerd merged 9 commits into
masterfrom
multi-out-names
Oct 30, 2019
Merged

thehomebrewnerd merged 9 commits into
masterfrom
multi-out-names

Conversation

@thehomebrewnerd

Copy link
Copy Markdown
Contributor

Pull Request Description

Updates to allow for custom naming of multioutput primitives. Implements a generate_names method in PrimitiveBase class that can be overridden when creating a custom primitive.

This change was discussed in Issues #591 and #593.

@CLAassistant

CLAassistant commented Oct 18, 2019 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@rwedge rwedge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think GroupByTransformFeature should also implement generate_names

Comment thread featuretools/primitives/base/aggregation_primitive_base.py Outdated
Comment thread featuretools/primitives/base/transform_primitive_base.py Outdated
Comment thread docs/source/changelog.rst Outdated
f = 'MULTI_CUM_SUM(age) by région_id[%d]' % i
f = 'MULTI_CUM_SUM(age)[%d] by région_id' % i
assert f in fm.columns
for x, y in zip(fm[f].values, correct_answers[i][1].values):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For this test, can we also calculate the standard groupby features in a separate DFS call and compare, to see if the multioutput code path alters any values?

@rwedge rwedge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@thehomebrewnerd
thehomebrewnerd merged commit 6094a68 into master Oct 30, 2019
@thehomebrewnerd
thehomebrewnerd deleted the multi-out-names branch October 30, 2019 16:03
@rwedge rwedge mentioned this pull request Oct 31, 2019
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.

3 participants