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

Use isinstance instead of obj.__bases__ in ThirdPartyComponents #1686

Conversation

AmirAlavi
Copy link

This is a small change but will enable much easier extending of auto-sklearn algorithms, since without this change, all classes are expected to directly inherit from AutoSklearn base calsses, and do not allow additional layers of inheritance.

Closes #1604

This is a small change but will enable much easier extending of
auto-sklearn algorithms, since without this change, all classes
are expected to directly inherit from AutoSklearn base calsses,
and do not allow additional layers of inheritance.
@AmirAlavi
Copy link
Author

@eddiebergman this API may be deprecated soon due to the upcoming major refactor, but I have tooling around existing auto-sklearn which this would definitely simplify. I'd appreciate your feedback.

@codecov
Copy link

codecov bot commented Aug 30, 2023

Codecov Report

Merging #1686 (c97ead6) into development (6732112) will decrease coverage by 0.25%.
The diff coverage is 0.00%.

Additional details and impacted files
@@               Coverage Diff               @@
##           development    #1686      +/-   ##
===============================================
- Coverage        83.45%   83.21%   -0.25%     
===============================================
  Files              156      156              
  Lines            11934    11934              
  Branches          1900     1900              
===============================================
- Hits              9960     9931      -29     
- Misses            1409     1435      +26     
- Partials           565      568       +3     

Impacted file tree graph

@eddiebergman
Copy link
Contributor

Hi @AmirAlavi,

Can you take a look at the failing tests? Seems some other changes need to be done as well.

Best,
Eddie

@github-actions github-actions bot added the Stale label Oct 31, 2023
@github-actions github-actions bot closed this Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ThirdPartyComponents.add_component check for explicit base class results in redundant inheritance
2 participants