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

Update properties of cumulative transform primitives #320

Merged
merged 4 commits into from Nov 26, 2018

Conversation

kmax12
Copy link
Contributor

@kmax12 kmax12 commented Nov 14, 2018

Cumulative transform primitives had an incorrectly define property. It was named needs_all_values when it should have been uses_full_entity.

This PR fixes that and adds a test.

fixes #317 reported by @MarekHauzr

@codecov
Copy link

codecov bot commented Nov 14, 2018

Codecov Report

Merging #320 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #320      +/-   ##
==========================================
+ Coverage   95.12%   95.12%   +<.01%     
==========================================
  Files          71       71              
  Lines        7705     7714       +9     
==========================================
+ Hits         7329     7338       +9     
  Misses        376      376
Impacted Files Coverage Δ
featuretools/primitives/cum_transform_feature.py 97.63% <100%> (ø) ⬆️
.../feature_function_tests/test_transform_features.py 98.87% <100%> (+0.01%) ⬆️

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 3d4eff9...b7947ef. Read the comment docs.

@@ -617,6 +617,18 @@ def test_cum_sum_use_previous_and_where_absolute(es):
assert v == cvalues[i]


def test_cum_handles_uses_full_entity(es):
log_value_feat = es['log']['value']
for primitive in [CumSum, CumMean, CumMax, CumMax]:
Copy link
Contributor

Choose a reason for hiding this comment

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

CumMax is in the list twice and CumCount and CumMin are not present.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

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!

@kmax12 kmax12 merged commit 65f54ac into master Nov 26, 2018
@rwedge rwedge mentioned this pull request Nov 29, 2018
@kmax12 kmax12 deleted the fix-cum-primitives branch December 1, 2018 16:49
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.

Different results for same primitives and different max_depth in featuretools.dfs
2 participants