Skip to content
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

Warn user if primitives are unused during dfs #1073

Merged
merged 22 commits into from
Jul 30, 2020
Merged

Conversation

thehomebrewnerd
Copy link
Contributor

This PR implements changes that will issue a warning if a user supplies primitives to dfs that do not get used in generating the feature matrix. If the default primitives are used, this check is not performed - the check only happens when the user supplies a list of primitives.

Added tests to check for warnings in a variety of situations including trans_primitives, agg_primitives, where_primitives, groupby_trans_primitives and custom primitives.

@codecov
Copy link

codecov bot commented Jul 17, 2020

Codecov Report

Merging #1073 into main will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1073      +/-   ##
==========================================
+ Coverage   98.35%   98.36%   +0.01%     
==========================================
  Files         126      126              
  Lines       13161    13267     +106     
==========================================
+ Hits        12944    13050     +106     
  Misses        217      217              
Impacted Files Coverage Δ
featuretools/exceptions.py 80.00% <100.00%> (+13.33%) ⬆️
featuretools/synthesis/dfs.py 100.00% <100.00%> (ø)
featuretools/tests/synthesis/test_dfs_method.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d3bda4...dc6431d. Read the comment docs.

@thehomebrewnerd thehomebrewnerd removed the request for review from frances-h July 17, 2020 21:29
featuretools/synthesis/dfs.py Outdated Show resolved Hide resolved
featuretools/synthesis/dfs.py Outdated Show resolved Hide resolved
frances-h
frances-h previously approved these changes Jul 22, 2020
Copy link
Contributor

@frances-h frances-h left a comment

Choose a reason for hiding this comment

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

lgtm! 👍

@thehomebrewnerd thehomebrewnerd requested a review from rwedge July 22, 2020 14:07
featuretools/exceptions.py Outdated Show resolved Hide resolved
Copy link
Contributor

@rwedge rwedge left a comment

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 6b9b5a8 into main Jul 30, 2020
@thehomebrewnerd thehomebrewnerd deleted the unused-primitives branch July 30, 2020 21:35
@rwedge rwedge mentioned this pull request Jul 31, 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.

4 participants