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

feat: new method is_fitted to check whether a transformer is fitted #131

Merged
merged 2 commits into from
Mar 30, 2023

Conversation

lars-reimann
Copy link
Member

Summary of Changes

Add a new method is_fitted to TableTransformers to easily check whether they have been fitted already.

@lars-reimann lars-reimann requested a review from a team as a code owner March 30, 2023 20:40
@lars-reimann
Copy link
Member Author

lars-reimann commented Mar 30, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 7 0 0 0.87s
✅ PYTHON flake8 7 0 0.49s
✅ PYTHON isort 7 0 0 0.27s
✅ PYTHON mypy 7 0 2.15s
✅ PYTHON pylint 7 0 2.73s
✅ 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 Mar 30, 2023

Codecov Report

Merging #131 (1cea022) into main (8e1c3ea) will increase coverage by 0.04%.
The diff coverage is 100.00%.

❗ Current head 1cea022 differs from pull request most recent head 7a3cee9. Consider uploading reports for the commit 7a3cee9 to get more accurate results

@@            Coverage Diff             @@
##             main     #131      +/-   ##
==========================================
+ Coverage   93.40%   93.44%   +0.04%     
==========================================
  Files          36       36              
  Lines        1288     1296       +8     
==========================================
+ Hits         1203     1211       +8     
  Misses         85       85              
Impacted Files Coverage Δ
src/safeds/data/tabular/transformation/_imputer.py 92.95% <100.00%> (+0.20%) ⬆️
...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 94.11% <100.00%> (+0.78%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@lars-reimann lars-reimann merged commit e20954f into main Mar 30, 2023
@lars-reimann lars-reimann deleted the is_fitted_transformer branch March 30, 2023 20:44
lars-reimann pushed a commit that referenced this pull request Mar 31, 2023
## [0.8.0](v0.7.0...v0.8.0) (2023-03-31)

### Features

* create empty `Table` without schema ([#128](#128)) ([ddd3f59](ddd3f59)), closes [#127](#127)
* improve `ColumnType`s ([#132](#132)) ([1786a87](1786a87)), closes [#113](#113)
* infer schema of row if not passed explicitly ([#134](#134)) ([c5869bb](c5869bb)), closes [#15](#15)
* new method `is_fitted` to check whether a model is fitted ([#130](#130)) ([8e1c3ea](8e1c3ea))
* new method `is_fitted` to check whether a transformer is fitted ([#131](#131)) ([e20954f](e20954f))
* rename `drop_XY` methods of `Table` to `remove_XY` ([#122](#122)) ([98d76a4](98d76a4))
* rename `fit_transform` to `fit_and_transform` ([#119](#119)) ([76a7112](76a7112)), closes [#112](#112)
* rename `shuffle` to `shuffle_rows` ([#125](#125)) ([ea21928](ea21928))
* rename `slice` to `slice_rows` ([#126](#126)) ([20d21c2](20d21c2))
* rename `TableSchema` to `Schema` ([#133](#133)) ([1419d25](1419d25))
@lars-reimann
Copy link
Member Author

🎉 This PR is included in version 0.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Mar 31, 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.

None yet

1 participant