Created
July 17, 2020 08:42
-
-
Save MaxHalford/dc23341d1566031056c8e2a59933fe42 to your computer and use it in GitHub Desktop.
sklearn partial_fit support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import importlib | |
import inspect | |
def worthy(obj): | |
return inspect.isclass(obj) and hasattr(obj, 'partial_fit') | |
for _, submodule in inspect.getmembers(importlib.import_module('sklearn'), inspect.ismodule): | |
for _, obj in inspect.getmembers(submodule, worthy): | |
print(submodule.__name__, obj.__name__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment