-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
See aix/sk.py. It uses guide.tools.submodule_callables, but that function doesn't catch everything (seems to fail on __all__ definitions.
"""sklearn (scikit-learn)"""
from contextlib import suppress
from guide.tools import submodule_callables
import sklearn
for _ in list(dict.fromkeys(submodule_callables(sklearn))):
if hasattr(_, '__name__'):
locals()[_.__name__] = _
for _subpackage_name in sklearn.__all__:
with suppress(ModuleNotFoundError):
_subpackage = __import__(f"sklearn.{_subpackage_name}")
for _ in submodule_callables(sklearn):
if hasattr(_, '__name__'):
locals()[_.__name__] = _See: https://github.com/thorwhalen/guide/blob/master/guide/tools.py
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request