-
Notifications
You must be signed in to change notification settings - Fork 14
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
Generic Tests for CappingTransformer #200
Conversation
… to BaseMappingTransformerInitTests as it is specific to transformers with mappings arg
…Created new BaseCappingTransformer class to assist in this
Picked this one up to avoid going stale as David is on AL. Did a bit of a refactor of the capping file to make it fit better with the new testing, main change is pulling out shared functionality into 'BaseCapping' class. In the process had to edit OutOfRangeNullTransformer, so scope did creep to updating tests for that one too (sorry!) Did highlight that there are weight checks that can probably be moved into BaseTransformer, or another higher level class. But will leave for another issue. |
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.
overall looks good
saw some of tests script has OtherBaseBehaviourTests, some not, any specific reason (don't think OtherBaseBehaviourTests has anything in it tho)
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.
not something for this pr: if we have a chance, would it be better to reorder minimal_attribute_dict to alphabetic order (or anything makes it easier to navigate?)
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.
Re OtherBaseBehaviourTests, which ones have you spotted that are missing it? think we should be adding
And sure will set up an issue re min attribute dict :)
Adding Generic tests for Capping Transformer.
Realised that the sole test in ColumnsFromDictInitTests is actually specific to Mapping Transformers so have moved this to BAseMappingTransformer tests. Creating a similar test for Capping Transformers to Inherit.