-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Dummy implementation of a multi-objective ensemble. #1523
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like most of this code I've seen before with all the other ensemble stuff so I didn't look too deep into it. Mostly just nit-picks about typing and defaults.
One thing to use newer typing (renders better in docs, less imports and the recommended way going forward) would be to use pyupgrade
. Won't block on that though.
pip install pyupgrade
pyupgrade --py310-plus autosklearn/ensembles/multiobjective_dummy_ensemble.py
Codecov Report
@@ Coverage Diff @@
## development #1523 +/- ##
===============================================
+ Coverage 83.94% 84.39% +0.44%
===============================================
Files 153 156 +3
Lines 11654 11788 +134
Branches 2031 2050 +19
===============================================
+ Hits 9783 9948 +165
+ Misses 1326 1289 -37
- Partials 545 551 +6 |
By encapsulating it this way, type checker is more friendly, the @Property is always available and will throw an error if not fitted. IN contrast, a non-existent property is likely to give a much more inuintive error that "attribute pareto_set_ does not exist"
This reverts commit 446b7d6.
See the comment string for the fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :)
* Dummy implementation of a multi-objective ensemble. * Fix bug * One bugfix and suggestions from Eddie * Move single best common code into parent class * fix docstring * Add tests + improve docs + simplify code * Factor out pareto_front into stand alone function * Make the pareto set a property By encapsulating it this way, type checker is more friendly, the @Property is always available and will throw an error if not fitted. IN contrast, a non-existent property is likely to give a much more inuintive error that "attribute pareto_set_ does not exist" * Add None defaults, fix indentation * Move resolve ensemble class check to init * Revert "Move resolve ensemble class check to init" This reverts commit 446b7d6. * Fix `_resolve_ensemble_class` and make it private See the comment string for the fix * Fix variable name * Fix missing parameter names * Fix bug, update docs * Implement requested changes, fix bug Co-authored-by: eddiebergman <[email protected]>
No description provided.