[BUG] Fix Sklearn Models detection by safely importing openml-sklearn#1556
[BUG] Fix Sklearn Models detection by safely importing openml-sklearn#1556fkiraly merged 9 commits intoopenml:mainfrom
Conversation
geetu040
left a comment
There was a problem hiding this comment.
Nice, the safe import logic looks good.
Since this is specific to models and flows I would suggest we move it inside both functions in extensions/functions.py as you suggested before. Though it's still not the best place to put this, but we are restricted by circular imports and can improve the logic afterwards when extension classes are refactored
Also, could you improve the SKLEARN_HINT message, you can suggest to install it using pip install openml-sklearn
fkiraly
left a comment
There was a problem hiding this comment.
Quick question - why does this work, given that openml_sklearn is not actually directly used? Is there some background magic that does something non-explicit, in case the module gets imported?
That feels very dangerous design, if it were so (fully aware that it is not yours).
Yes, the |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1556 +/- ##
===========================================
- Coverage 79.14% 52.71% -26.43%
===========================================
Files 36 36
Lines 4320 4325 +5
===========================================
- Hits 3419 2280 -1139
- Misses 901 2045 +1144 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…openml#1556) #### Metadata * Reference Issue: Fixes openml#1542 #### Details Fixed sklearn models detection by safely importing openml-sklearn at `openml/runs/__init__.py`
Metadata
Details
Fixed sklearn models detection by safely importing openml-sklearn at
openml/runs/__init__.py