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: remove target_name parameter of predict #70

Merged
merged 3 commits into from
Mar 24, 2023
Merged

Conversation

lars-reimann
Copy link
Member

Summary of Changes

This can also be accomplished by renaming columns in the returned table. If the input table already contains the column we want to predict, it's an indicator for #9, so we shouldn't just let people change the name here.

@lars-reimann
Copy link
Member Author

lars-reimann commented Mar 24, 2023

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 17 0 0 0.76s
✅ PYTHON flake8 17 0 0.49s
✅ PYTHON isort 17 0 0 0.27s
✅ PYTHON mypy 17 0 2.04s
✅ PYTHON pylint 17 0 1.8s
✅ 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 24, 2023

Codecov Report

Merging #70 (7659ae7) into main (cfbcd64) will decrease coverage by 0.13%.
The diff coverage is 100.00%.

❗ Current head 7659ae7 differs from pull request most recent head 20cf977. Consider uploading reports for the commit 20cf977 to get more accurate results

@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
- Coverage   91.68%   91.56%   -0.13%     
==========================================
  Files          46       46              
  Lines        1155     1138      -17     
==========================================
- Hits         1059     1042      -17     
  Misses         96       96              
Impacted Files Coverage Δ
src/safeds/ml/classification/_ada_boost.py 100.00% <100.00%> (ø)
src/safeds/ml/classification/_classifier.py 100.00% <100.00%> (ø)
src/safeds/ml/classification/_decision_tree.py 100.00% <100.00%> (ø)
...lassification/_gradient_boosting_classification.py 100.00% <100.00%> (ø)
...c/safeds/ml/classification/_k_nearest_neighbors.py 100.00% <100.00%> (ø)
...c/safeds/ml/classification/_logistic_regression.py 100.00% <100.00%> (ø)
src/safeds/ml/classification/_random_forest.py 100.00% <100.00%> (ø)
src/safeds/ml/regression/_ada_boost.py 100.00% <100.00%> (ø)
src/safeds/ml/regression/_decision_tree.py 100.00% <100.00%> (ø)
...rc/safeds/ml/regression/_elastic_net_regression.py 100.00% <100.00%> (ø)
... and 7 more

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 b513454 into main Mar 24, 2023
@lars-reimann lars-reimann deleted the remove_target_name branch March 24, 2023 12:57
lars-reimann pushed a commit that referenced this pull request Mar 26, 2023
## [0.4.0](v0.3.0...v0.4.0) (2023-03-26)

### Features

* better names for properties of `TaggedTable` ([#74](#74)) ([fee398b](fee398b))
* change the name of a `Column` ([#76](#76)) ([ec539eb](ec539eb))
* metrics as methods of models ([#77](#77)) ([bc63693](bc63693)), closes [#64](#64)
* optionally pass type to column ([#79](#79)) ([64aa429](64aa429)), closes [#78](#78)
* remove `target_name` parameter of `predict` ([#70](#70)) ([b513454](b513454)), closes [#9](#9)
* rename `tagged_table` parameter of `fit` to `training_set` ([#71](#71)) ([8655521](8655521))
* return `TaggedTable` from `predict` ([#73](#73)) ([5d5f5a6](5d5f5a6))
@lars-reimann
Copy link
Member Author

🎉 This PR is included in version 0.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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