Skip to content

Conversation

@mfeurer
Copy link
Contributor

@mfeurer mfeurer commented Jun 17, 2022

No description provided.

Copy link
Contributor

@eddiebergman eddiebergman left a 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
Copy link

codecov bot commented Jun 17, 2022

Codecov Report

Merging #1523 (ffeb0e8) into development (9d63cb5) will increase coverage by 0.44%.
The diff coverage is 90.64%.

@@ 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 

Impacted file tree graph

@mfeurer mfeurer added this to the V0.15 milestone Jun 27, 2022
@mfeurer mfeurer requested a review from eddiebergman July 8, 2022 16:18
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"
See the comment string for the fix
@mfeurer mfeurer requested a review from eddiebergman August 3, 2022 15:51
Copy link
Contributor

@eddiebergman eddiebergman left a comment

Choose a reason for hiding this comment

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

Looks good :)

@mfeurer mfeurer merged commit d0a922c into development Aug 4, 2022
@mfeurer mfeurer deleted the dummy_moo_ensemble_implementation branch August 4, 2022 09:03
eddiebergman added a commit that referenced this pull request Aug 18, 2022
* 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 <eddiebergmanhs@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants