List of classification methods #1111
Answered
by
MaxHalford
Boblancvich
asked this question in
Q&A
-
Hi, Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
MaxHalford
Dec 7, 2022
Replies: 2 comments 10 replies
-
Hey @Boblancvich! Alas we don't have a nice list in our docs. But you can do this: import importlib
import inspect
from river import base
for submodule in importlib.import_module("river.api").__all__:
def is_classifier(obj):
return inspect.isclass(obj) and issubclass(obj, base.Classifier)
for name, obj in inspect.getmembers(
importlib.import_module(f"river.{submodule}"), is_classifier
):
print(f"{submodule}.{name}")
I hope that helps! |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
MaxHalford
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Boblancvich!
Alas we don't have a nice list in our docs. But you can do this: