-
Notifications
You must be signed in to change notification settings - Fork 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
Extended collection of useful transformations #72
Conversation
@@ -12,8 +12,8 @@ class TestCategoricalClassification(unittest.TestCase): | |||
def setUp(self): | |||
self.cc_instance = CategoricalClassification() | |||
|
|||
def test_init(self): | |||
self.assertEqual(self.cc_instance.dataset_info, '') | |||
# def test_init(self): |
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.
Why not remove?
result = self.cc_instance._or(arr) | ||
expected = np.array([1, 1, 1]) | ||
self.assertTrue(np.array_equal(result, expected), 'OR operation did not produce expected result') | ||
# def test_xor_operation(self): |
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.
Why not remove?
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.
Tests were created by @98MM , he'll have to review before we remove. This is to make everything operate fine for now.
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.
Fixed the tests and an error in logical combination functions, should I make a new PR?
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.
Also, should I keep
if __name__ == '__main__':
unittest.main()
I used for local testing in my tests file? I noticed some of the other test files lack it.
https://jira.outbrain.com/browse/REF-56123
also fixes tests