Skip to content

feat: Add methods that tell which columns would be affected by a transformer#304

Merged
PhilipGutberlet merged 16 commits intomainfrom
190-columns-that-are-addedchangedremoved-by-a-tabletransformer
May 19, 2023
Merged

feat: Add methods that tell which columns would be affected by a transformer#304
PhilipGutberlet merged 16 commits intomainfrom
190-columns-that-are-addedchangedremoved-by-a-tabletransformer

Conversation

@zzril
Copy link
Contributor

@zzril zzril commented May 12, 2023

Closes #190 .

Summary of Changes

Added abstract methods get_names_of_added_columns, get_names_of_changed_columns, get_names_of_removed_columns in TableTransformer class.
Added implementations for all transformers.

Co-authored-by: sibre28 86068340+sibre28@users.noreply.github.com

@zzril zzril linked an issue May 12, 2023 that may be closed by this pull request
@lars-reimann
Copy link
Member

lars-reimann commented May 12, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 7 0 0 1.08s
✅ PYTHON mypy 7 0 2.47s
✅ PYTHON ruff 7 0 0 0.06s
✅ REPOSITORY git_diff yes no 0.03s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@codecov
Copy link

codecov bot commented May 12, 2023

Codecov Report

Merging #304 (1d8337b) into main (976ddea) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #304   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           43        43           
  Lines         1786      1836   +50     
=========================================
+ Hits          1786      1836   +50     
Impacted Files Coverage Δ
src/safeds/data/tabular/transformation/_imputer.py 100.00% <100.00%> (ø)
...feds/data/tabular/transformation/_label_encoder.py 100.00% <100.00%> (ø)
...ds/data/tabular/transformation/_one_hot_encoder.py 100.00% <100.00%> (ø)
.../data/tabular/transformation/_table_transformer.py 100.00% <100.00%> (ø)

zzril and others added 9 commits May 12, 2023 15:24
Co-authored-by: sibre28 <86068340+sibre28@users.noreply.github.com>
Co-authored-by: sibre28 <86068340+sibre28@users.noreply.github.com>
Co-authored-by: sibre28 <86068340+sibre28@users.noreply.github.com>
Co-authored-by: sibre28 <86068340+sibre28@users.noreply.github.com>
@zzril zzril marked this pull request as ready for review May 12, 2023 14:43
@zzril zzril requested a review from a team as a code owner May 12, 2023 14:43
Copy link
Contributor

@Marsmaennchen221 Marsmaennchen221 left a comment

Choose a reason for hiding this comment

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

Please add docstrings in imputer, label_encoder and one_hot_encoder for the raised Exceptions.
Please test that the exceptions are being raised

Co-authored-by: sibre28 <86068340+sibre28@users.noreply.github.com>
@zzril
Copy link
Contributor Author

zzril commented May 19, 2023

Please add docstrings in imputer, label_encoder and one_hot_encoder for the raised Exceptions. Please test that the exceptions are being raised

Added docstrings for the TransformerNotFittedErrors.
The tests do already check of that is raised.

@sibre28 sibre28 requested a review from Marsmaennchen221 May 19, 2023 11:20
Co-authored-by: sibre28 <86068340+sibre28@users.noreply.github.com>
@sibre28 sibre28 requested a review from PhilipGutberlet May 19, 2023 11:30
zzril and others added 2 commits May 19, 2023 13:37
Also corrected typo in docstring for Imputer.

Co-authored-by: sibre28 <86068340+sibre28@users.noreply.github.com>
Co-authored-by: sibre28 <86068340+sibre28@users.noreply.github.com>
@PhilipGutberlet PhilipGutberlet enabled auto-merge (squash) May 19, 2023 12:16
@PhilipGutberlet PhilipGutberlet merged commit 3933b45 into main May 19, 2023
@PhilipGutberlet PhilipGutberlet deleted the 190-columns-that-are-addedchangedremoved-by-a-tabletransformer branch May 19, 2023 12:21
lars-reimann pushed a commit that referenced this pull request Jun 1, 2023
## [0.13.0](v0.12.0...v0.13.0) (2023-06-01)

### Features

* add `Choice` class for possible values of hyperparameter ([#325](#325)) ([d511c3e](d511c3e)), closes [#264](#264)
* Add `RangeScaler` transformer ([#310](#310)) ([f687840](f687840)), closes [#141](#141)
* Add methods that tell which columns would be affected by a transformer ([#304](#304)) ([3933b45](3933b45)), closes [#190](#190)
* Getters for hyperparameters of Regression and Classification models ([#306](#306)) ([5c7a662](5c7a662)), closes [#260](#260)
* improve error handling of table ([#308](#308)) ([ef87cc4](ef87cc4)), closes [#147](#147)
* Remove warnings thrown in new `Transformer` methods ([#324](#324)) ([ca046c4](ca046c4)), closes [#323](#323)
@lars-reimann
Copy link
Member

🎉 This PR is included in version 0.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Included in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Columns that are added/changed/removed by a TableTransformer

6 participants