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

Objective classes #188

Merged
merged 46 commits into from
Apr 10, 2024
Merged

Objective classes #188

merged 46 commits into from
Apr 10, 2024

Conversation

AdrianSosic
Copy link
Collaborator

This PR introduces the new objective classes SingleTargetObjective and DesirabilityObjective as replacements for the former Objective class, together with an appropriate deprecation mechanism.

@AdrianSosic AdrianSosic added the enhancement Expand / change existing functionality label Apr 2, 2024
@AdrianSosic AdrianSosic self-assigned this Apr 2, 2024
@AdrianSosic
Copy link
Collaborator Author

Hi @Scienfitz and @AVHopp, the objective PR is finally ready. I know it seems like a lot of changes, but please be aware that in most files only the references were updated, so it's not as much as it appears at the first glance. Also, I've created one initial commit where I copied the plain objective source code to the new subclass files, so you can also see diffs if you compare against that commit. Other than that, there was really no better way to break this PR down to smaller changes...

But let me know what you think 🙃

AdrianSosic

This comment was marked as outdated.

CHANGELOG.md Outdated Show resolved Hide resolved
baybe/objectives/base.py Show resolved Hide resolved
baybe/objectives/base.py Outdated Show resolved Hide resolved
baybe/objective.py Show resolved Hide resolved
baybe/objectives/base.py Outdated Show resolved Hide resolved
baybe/targets/base.py Show resolved Hide resolved
baybe/targets/numerical.py Outdated Show resolved Hide resolved
baybe/utils/basic.py Outdated Show resolved Hide resolved
tests/test_deprecations.py Show resolved Hide resolved
tests/test_deprecations.py Show resolved Hide resolved
baybe/objectives/enum.py Outdated Show resolved Hide resolved
baybe/objectives/single.py Show resolved Hide resolved
tests/test_deprecations.py Show resolved Hide resolved
tests/test_deprecations.py Show resolved Hide resolved
tests/test_deprecations.py Show resolved Hide resolved
baybe/objectives/desirability.py Outdated Show resolved Hide resolved
baybe/objectives/deprecation.py Outdated Show resolved Hide resolved
baybe/recommenders/deprecation.py Show resolved Hide resolved
baybe/objectives/single.py Outdated Show resolved Hide resolved
baybe/objectives/desirability.py Outdated Show resolved Hide resolved
@AdrianSosic AdrianSosic force-pushed the refactor/objectives branch from a327984 to 54189cf Compare April 8, 2024 14:19
@AdrianSosic
Copy link
Collaborator Author

Hi @AVHopp @Scienfitz. All open issues have been addressed and the PR is now ready for merge from my side (except for that one open issue where I would appreciate some suggestions, @Scienfitz).

BTW: decided to update via merge instead of rebase because this would have been really error-prone...

Copy link
Collaborator

@AVHopp AVHopp left a comment

Choose a reason for hiding this comment

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

Looking good :)

* Rename to _is_transform_normalized
* Improve docstring and error message
@AdrianSosic AdrianSosic added this to the Mypy milestone Apr 10, 2024
@AdrianSosic AdrianSosic merged commit d0e99be into main Apr 10, 2024
10 checks passed
@AdrianSosic AdrianSosic deleted the refactor/objectives branch April 10, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Expand / change existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants