-
Notifications
You must be signed in to change notification settings - Fork 891
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
Add MaxConsecutiveFalse, MaxConsecutiveNegatives, MaxConsecutivePositives, MaxConsecutiveTrue, MaxConsecutiveZeros, NumConsecutiveGreaterMean, NumConsecutiveLessMean #2420
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2420 +/- ##
========================================
Coverage 99.44% 99.44%
========================================
Files 331 340 +9
Lines 20432 20870 +438
========================================
+ Hits 20319 20755 +436
- Misses 113 115 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
featuretools/primitives/standard/aggregation/max_consecutive_positives.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we have two new uncovered lines with these updates. Might be nice to add a test to cover those if it's not a big lift.
featuretools/primitives/standard/aggregation/max_consecutive_zeros.py
Outdated
Show resolved
Hide resolved
primitive_instance = self.primitive() | ||
def test_regular(self, dtype): | ||
if dtype == "int64": | ||
pytest.skip("floats not supported in int64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
floats -> nans
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this was intentional message. I made a better one
a014517
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see. I didn't follow what was being tested closely enough.
primitive_instance = self.primitive() | ||
def test_regular(self, dtype): | ||
if dtype == "int64": | ||
pytest.skip("floats not supported in int64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
floats -> nans
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this was intentional message. I made a better one
a014517
primitive_instance = self.primitive() | ||
def test_regular(self, dtype): | ||
if dtype == "int64": | ||
pytest.skip("floats not supported in int64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
floats -> nans
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this was intentional message. I made a better one
a014517
primitive_instance = self.primitive() | ||
def test_all_float(self, dtype): | ||
if dtype == "int64": | ||
pytest.skip("floats not supported in int64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
floats -> nans
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No this was intentional message. I made a better one
a014517
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nitpicks, but not blocking
@@ -69,7 +69,7 @@ def test_all_int(self, dtype): | |||
|
|||
def test_all_float(self, dtype): | |||
if dtype == "int64": | |||
pytest.skip("floats not supported in int64") | |||
pytest.skip("test array contains floats which are not supported int64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: the floats used in this test could all be represented as integers. Should we change?
@@ -126,7 +126,7 @@ def test_all_int(self, dtype): | |||
|
|||
def test_all_float(self, dtype): | |||
if dtype == "int64": | |||
pytest.skip("floats not supported in int64") | |||
pytest.skip("test array contains floats which are not supported int64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: the floats used in this test could all be represented as integers. Should we change?
No description provided.