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

v0.3.3 changes into main #64

Merged
merged 16 commits into from
Jan 19, 2023
Merged

v0.3.3 changes into main #64

merged 16 commits into from
Jan 19, 2023

Conversation

davidhopkinson26
Copy link
Contributor

Added

  • added support for prior mean encoding (regularised encodings)
  • added support for weights to mean, median and mode imputers
  • added classname() method to BaseTransformer and prefixed all errors with classname call for easier debugging
  • added DatetimeInfoExtractor transformer
  • added DatetimeSinusoidCalculator
  • added TwoColumnOperatorTransformer
  • added StringConcatenator
  • added SetColumnDtype
  • added waring to MappingTransformer for unexpected changes in dtype
  • added new module tubular/comparison.py containing EqualityChecker
  • added PCATransforme

Fixed

  • updated black version to 22.3.0 and flake8 version to 5.0.4 to fix compatibility issues
  • removed kwargs argument from BaseTransfomer

davidhopkinson26 and others added 16 commits November 22, 2022 13:31
… with click (#45)

* updated black version to 22.3.0 to fix compatibility issue with click 8.1.0

* updated to latest version of flake8==5.0.4 in requirement-dev.txt

* updated changelog with black and flake8 fixes

Co-authored-by: david hopkinson <davidhopkinson26@gmail.com>
Prefixed all errors with self.classname() call for easier debugging

Added classname() method to BaseTransformer
* added prior regularisation to MeanResponseTransformer and updated tests

* reworded docstring in _prior_regularisation
* Added support for weights to mean, median and mode imputer and updated
tests.

Added check_weights_column to BaseTransformer to facilitate validation
of weights columns.

* bugfix - had accidentally removed a line to iterate over columns whe
adding in weights functionality. added back in.

* updated changelog

* added a warning to ModeImputer if mode is NaN

* added missing tests to ModeImputer and MedianImputer for uniformity
across test modules

* changed to test_Weight_arg_errors consistent with Median and Mean
imputer testing
* removed **kwargs arg from BaseTransformer.__init__

* added test for unexpected kwarg handling to test_BaseTransformer.py
added similar test to example child class test module
test_DataFrameMethodTransformer.py

* fix broken tests with incorrect kwargs
* added DatetimeInfoExtractor transformer

* added example notebook for DatetimeInfoExtractor.ipynb

* changed name of transformer to DatetimeInfoExtractor from
DateTimeInfoExtractor

* updated test_transformers to include DatetimeInfoExtractor

* updated DatetimeInfoExtractor to work with missing data

* removed import sys logic from examplem notebook

* added more detailed description to docstring

* removed redundant type checking on columns (covered in super.__init__)

* removed redundant test of column type error (covered in
test_BaseTransformer)

* created mappings_provided variable for easier reading

* black formatting

* refactored identify_timeofday, ..._timeofmonth, ..._timeofyear,
..._dayofweek into single _map_values method

updated tests

* updated datetime dtype error handling with more specific exception and detailed message

* added detail of default values for mappings to dcostring.

 added more detail on default values and custom mappings requirements to
 examples notebook

* added method description to docstring

* black formatting
* added DatetimeSinusoidCalculator transformer, tests and examples
* added TwoColunOperatorMethodTransformer, tests and example notebook
)

* added a warning to mapping transformer for unexpected dtype changes

* added warning suppression option
* added comparison module containing EqualityChecker

added test module
added example notebook
* added SetColumnDtype transformer, test module and example
* StringConcatenator added to strings.py
Added PCATransformer to numeric.py

Co-authored-by: Fromholz <claire.fromholz@allianz.com>
correcting broken link to changelog
* Update CHANGELOG.rst
* updated api.rst with new transformers
* Update quick-start.rst
@davidhopkinson26 davidhopkinson26 merged commit 0098637 into main Jan 19, 2023
davidhopkinson26 added a commit that referenced this pull request Mar 15, 2023
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.

3 participants